Specifying the target from multiple PHIs using command line

Specifying the target from multiple PHIs using command line

Hello,

I have a system with two PHI's. Is it possible to choose a specific target PHI when launching the program from the command line, if I didn't specify a target_id in the offload pragma, such as: #pragma offload target(mic)?

Thanks,
Ahmad

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

When you don't specify a device number in #pragma offload target(mic) the default is logical device 0

To map the logical device 0 to 2nd physical device  (physical device numbering start from 0)  in a 2 card system use env OFFLOAD_DEVICES=1

Thanks a lot, that's what I wanted to know.

Login to leave a comment.