Software Archive
Read-only legacy content
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
17065 Discussions

How to check if a node has a coprocessor?

Carlos_Alexandre_T_
168 Views

How to I know if a node has a coprocessor while on runtime?

Thanks!

0 Kudos
1 Reply
Leonardo_B_Intel
Employee
168 Views

Hello,

If you compile and build with Intel compilers, did you take a look at /opt/intel/composerxe/Samples/en_US/C++/mic_samples/intro_sampleC/sampleC00.c ?

It uses runtime calls like _Offload_number_of_devices()  defined in offload.h

I think this might meet your needs...

Best,

Leo.

 

 

 

Reply