<div dir="ltr">Hello,<div>I was checking the clang support for the omp target directive and using the following line to compile a simple example:</div><div>$ clang -v  -O0 -save-temps -fopenmp -omp-target-mode -omptargets=nvptx64-nvidia-cuda target-2.c -o target-2</div><div>It links to "libomptarget.so", which seems to implement these methods:</div><div>__kmpc_register_lib<br></div><div>__kmpc_target<br></div><div>__kmpc_target_data_begin<br></div><div>__kmpc_target_data_end<br></div><div>My question is: how can I load the kernel code (or any other target code like x86-64) using these methods and data structures defined at llvm/tools/clang/lib/CodeGen/CGOpenMPRuntimeTypes.h ?</div><div><br></div><div>A+</div><div>Joao</div><div><br></div><div><br></div></div>