I am trying to write a hybrid application which will use both CPU and MIC at the same time. In my job script I added the following lines:
Then I tried to see how many workers were actually running on MIC. So I printed the __cilkrts_get_nworkers() on MIC. And surprisingly this was always giving me 1!
I tried to set the worker counts also. And that attempt was also failed. Does anyone know a solution to this problem. How to ensure that MIC will use "N" number of cores? If anyone is aware of the solution, please let me know.
Thanks in advance.
__attribute__((target(mic))) void kernel()
if (0!= __cilkrts_set_param("nworkers","244"))
std::cout<<"Failed to set worker count\n";