jhuber6 wrote: > no objection from me. Do you mean using gpuintrin.h in libclc implementation?
Yep, they're supposed to be generic wrappers around a lot of common GPU intrinsics, similar to what OpenCL would provide but done through a header. Like `__gpu_thread_id(__GPU_DIM_X)` which correctly dispatches to the intrinsic for AMDGCN / PTX. This is already used in the libc / openmp libraries. https://github.com/llvm/llvm-project/pull/174415 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
