[PATCH] D23037: [CUDA] Fix libdevice selection.
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 1 14:48:13 PDT 2016
jlebar added inline comments.
================
Comment at: lib/Driver/ToolChains.cpp:4773
@@ +4772,3 @@
+ StringRef GpuArch =
+ DriverArgs.getLastArgValue(options::OPT_march_EQ, "sm_20");
+ std::string LibDeviceFile = CudaInstallation.getLibDeviceFile(GpuArch);
----------------
I *think* march is never empty here. We should add it when we create the CudaActions.
Same below.
If I'm right or if I'm wrong, let's make sure there are tests. :)
================
Comment at: test/Driver/cuda-detect.cu:66
@@ -63,2 +65,2 @@
// NOCUDAINC-NOT: "-include" "__clang_cuda_runtime_wrapper.h"
// COMMON-SAME: "-x" "cuda"
----------------
Should we test the new sm_XX --> libdevice file mappings added?
https://reviews.llvm.org/D23037
More information about the cfe-commits
mailing list