[PATCH] D26774: [CUDA] Driver changes to support CUDA compilation on MacOS.

Samuel Antao via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 17 03:17:20 PST 2016


sfantao added a comment.

Hi Justin,

Thanks for the patch.



================
Comment at: clang/lib/Driver/Driver.cpp:479
+    // the device toolchain we create depends on both.
+    ToolChain *&CudaTC = ToolChains[CudaTriple.str() + "/" + HostTriple.str()];
+    if (!CudaTC) {
----------------
I am not sure I understand why to pair host and device toolchain in the map. The driver can be used to several compilations, but how do these compilation use different host toolchains? Can you give an example of an invocation? Maybe add it to the regression tests bellow. 


https://reviews.llvm.org/D26774





More information about the cfe-commits mailing list