![]() This patch implements omp_get_device_num() in the host and the device. It uses the already existing getDeviceNum in the device config for the device. And in the host it uses the omp_get_num_devices(). Two simple tests added Differential Revision: https://reviews.llvm.org/D128347 |
||
---|---|---|
.. | ||
has_openmp.c | ||
kmp_aligned_malloc.c | ||
kmp_set_defaults_lock_bug.c | ||
omp_aligned_alloc.c | ||
omp_aligned_calloc.c | ||
omp_alloc_def_fb.c | ||
omp_alloc_hbw.c | ||
omp_alloc_null_fb.c | ||
omp_calloc_def_fb.c | ||
omp_calloc_size_0.c | ||
omp_deprecated.c | ||
omp_display_env0.c | ||
omp_get_device_num.c | ||
omp_get_num_devices.c | ||
omp_get_num_threads.c | ||
omp_get_wtick.c | ||
omp_get_wtime.c | ||
omp_in_explicit_task.c | ||
omp_in_parallel.c | ||
omp_nteams_api.c | ||
omp_nteams_api_env.c | ||
omp_nteams_api_env2.c | ||
omp_pause_resource.c | ||
omp_realloc_def_fb.c | ||
omp_realloc_null_ptr.c | ||
omp_realloc_size_0.c |