[llvm-bugs] [Bug 52224] New: Missing GPU Builtins when compiling CUDA to bitcode on Windows
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 19 11:48:56 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=52224
Bug ID: 52224
Summary: Missing GPU Builtins when compiling CUDA to bitcode on
Windows
Product: clang
Version: 12.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: release blocker
Priority: P
Component: CUDA
Assignee: unassignedclangbugs at nondot.org
Reporter: rmohamme at mathworks.com
CC: llvm-bugs at lists.llvm.org
When compiling CUDA device code on Windows to bitcode using clang++, it seems
that implementations are missing for a couple of GPU builtins for input type
float. Below is a list of functions I found for which the implementations are
missing.
round, erf, erfc, hypot, expm1, log2, log1p, asinh, acosh and atanh.
The list is not exhaustive and there may be other functions also. Below is the
reproduction code and command that can be used.
File: repro.cu
Code:
extern "C" __device__ float reprof(float in) {
return ::round(in);
}
Compilation Command:
clang++ --cuda-gpu-arch=sm_50 --cuda-path=<PATH_TO_CUDA> --cuda-device-only -O2
-S -emit-llvm repro.cu -o repro.ll
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211019/1c430e64/attachment-0001.html>
More information about the llvm-bugs
mailing list