llvm-doe-org / llvm-project

The LLVM DOE Fork is a fork of upstream LLVM (https://github.com/llvm/llvm-project/) that hosts multiple DOE-funded projects. Contact information and other details for each project are described in the wiki.
https://github.com/llvm-doe-org/llvm-project/wiki/
Other
22 stars 13 forks source link

OpenMP device-type routine extensions #15

Open jdenny-ornl opened 3 years ago

jdenny-ornl commented 3 years ago

Clacc prototypes the following type and routines as OpenMP extensions to support OpenACC's type-based device-management routines, such as acc_get_device_type:

omp_device_t
omp_device_t omp_get_device_type(int device_num);
int omp_get_num_devices_of_type(omp_device_t device_type);
int omp_get_typed_device_num(int device_num);
int omp_get_device_of_type(omp_device_t device_type, int typed_device_num);

The initial commit is 608082a8e198. This feature should be considered for upstreaming to LLVM as described in #10.