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 mapping routine extensions #17

Open jdenny-ornl opened 3 years ago

jdenny-ornl commented 3 years ago

Clacc prototypes the following routines as OpenMP extensions to support OpenACC's data-clause-like data-management routines, such as acc_copyin:

void *omp_target_map_to(void *ptr, size_t size, int device_num);
void *omp_target_map_alloc(void *ptr, size_t size, int device_num);
void omp_target_map_from(void *ptr, size_t size, int device_num);
void omp_target_map_from_delete(void *ptr, size_t size, int device_num);
void omp_target_map_release(void *ptr, size_t size, int device_num);
void omp_target_map_delete(void *ptr, size_t size, int device_num);

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