Branch: refs/heads/main
Revision: 64207ec
Author: e-kayrakli
Link: Unavailable
Log Message:
Merge pull request #20054 from e-kayrakli/gpu-trig
Link libdevice when compiling for GPU
This PR links the libdevice bitcode library with the GPU module before generating PTX.
It follows the suggested steps outlined here: User Guide for NVPTX Back-end — LLVM 15.0.0git documentation
Resolves https://github.com/Cray/chapel-private/issues/3214
Resolves Linker errors with Random while using the GPU Locale Model · Issue #19891 · chapel-lang/chapel · GitHub
[Reviewed by @mppf]
Test:
-
gpu/native
Modified Files:
A test/gpu/native/math.chpl
A test/gpu/native/math.good
M compiler/include/driver.h
M compiler/llvm/clangUtil.cpp
M compiler/main/driver.cpp
M util/chplenv/chpl_gpu.py
M util/chplenv/printchplenv.pyCompare: Comparing 2863bb90460b...64207ec874b0 · chapel-lang/chapel · GitHub