[all-commits] [llvm/llvm-project] 616dd9: [OpenMP] Implementing omp_get_device_num()
Jose Manuel Monsalve Diaz via All-commits
all-commits at lists.llvm.org
Wed Jun 29 00:19:01 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 616dd9ae143172472bde793683d6e4df79554ac8
https://github.com/llvm/llvm-project/commit/616dd9ae143172472bde793683d6e4df79554ac8
Author: Jose M Monsalve Diaz <jmonsalvediaz at anl.gov>
Date: 2022-06-29 (Wed, 29 Jun 2022)
Changed paths:
M openmp/libomptarget/DeviceRTL/include/Configuration.h
M openmp/libomptarget/DeviceRTL/include/Interface.h
M openmp/libomptarget/DeviceRTL/src/State.cpp
M openmp/libomptarget/include/omptarget.h
M openmp/libomptarget/src/api.cpp
M openmp/libomptarget/src/exports
A openmp/libomptarget/test/api/omp_get_device_num.c
A openmp/runtime/test/api/omp_get_device_num.c
Log Message:
-----------
[OpenMP] Implementing omp_get_device_num()
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
More information about the All-commits
mailing list