I think I can use OpenMP at Tx2 as two device, one is Arm-v8 cores as host and the other is CUDA cores as target device.
But as I use the code as bellow, the print is
Host device = 0
Default device = 0
number of threads in default device = 1
number of CPUS in default device = 4
number of target devices = 0
===================================
int host,default_device;
host = omp_get_initial_device();
default_device = omp_get_default_device();
printf("Host device = %d\n", host);
printf("Default device = %d\n", default_device);
omp_set_default_device(default_device+1);
if (omp_get_default_device() != default_device+1)
printf("Default device is still = %d\n", default_device);
printf("number of threads in default device = %d \n",omp_get_num_threads());
printf("number of CPUS in default device = %d \n",omp_get_num_procs());
printf("number of target devices = %d\n",omp_get_num_devices());
Leaving alone the CPUs number is not 6, the device canβt be found nether.
What can I do to find the device? Thanks allβ¦