[PATCH] D35703: [GPGPU] Add support for NVIDIA libdevice

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 15:00:04 PDT 2017


tstellar added a comment.

How is this different from passing libdevice to either of the -mlink-cuda-bitcode or -mlink-bticode-file options ?



================
Comment at: lib/CodeGen/PPCGCodeGeneration.cpp:2309
+    // triple of the libdevice files are nvptx-unknown-unknown.
+    LibDeviceModule->setTargetTriple(Triple::normalize("nvptx64-nvidia-cuda"));
+    L.linkInModule(std::move(LibDeviceModule), Linker::LinkOnlyNeeded);
----------------
Could this be avoided by implementing Triple::isCompatibleWith() for nvptx?


https://reviews.llvm.org/D35703





More information about the llvm-commits mailing list