Software Archive
Read-only legacy content
17060 Discussions

Specifying the target from multiple PHIs using command line

Ahmad_A_
Beginner
236 Views

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

0 Kudos
2 Replies
Ravi_N_Intel
Employee
236 Views

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

0 Kudos
Ahmad_A_
Beginner
236 Views

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

0 Kudos
Reply