Software Archive
Read-only legacy content

How to check if a node has a coprocessor?

Carlos_Alexandre_T_
581 Views

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

Thanks!

0 Kudos
1 Reply
Leonardo_B_Intel
Employee
581 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.

 

 

 

0 Kudos
Reply