[PATCH] D43461: [CUDA] Include single GPU binary, NFCI.

2018-02-28 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326342: [CUDA] Include single GPU binary, NFCI. (authored by Hahnfeld, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

[PATCH] D43461: [CUDA] Include single GPU binary, NFCI.

2018-02-23 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld updated this revision to Diff 135649. Hahnfeld marked an inline comment as done. Hahnfeld added a comment. Update comment. https://reviews.llvm.org/D43461 Files: include/clang/Frontend/CodeGenOptions.h lib/CodeGen/CGCUDANV.cpp lib/Driver/ToolChains/Clang.cpp

[PATCH] D43461: [CUDA] Include single GPU binary, NFCI.

2018-02-20 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:1044-1045 - Opts.CudaGpuBinaryFileNames = - Args.getAllArgValues(OPT_fcuda_include_gpubinary); + Opts.CudaGpuBinaryFileName = + Args.getLastArgValue(OPT_fcuda_include_gpubinary);

[PATCH] D43461: [CUDA] Include single GPU binary, NFCI.

2018-02-20 Thread Artem Belevich via Phabricator via cfe-commits
tra accepted this revision. tra added inline comments. This revision is now accepted and ready to land. Comment at: lib/Frontend/CompilerInvocation.cpp:1044-1045 - Opts.CudaGpuBinaryFileNames = - Args.getAllArgValues(OPT_fcuda_include_gpubinary); +

[PATCH] D43461: [CUDA] Include single GPU binary, NFCI.

2018-02-20 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:1044-1045 - Opts.CudaGpuBinaryFileNames = - Args.getAllArgValues(OPT_fcuda_include_gpubinary); + Opts.CudaGpuBinaryFileName = + Args.getLastArgValue(OPT_fcuda_include_gpubinary);

[PATCH] D43461: [CUDA] Include single GPU binary, NFCI.

2018-02-20 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: lib/Driver/ToolChains/Clang.cpp:4659 if (IsCuda) { -// Host-side cuda compilation receives device-side outputs as Inputs[1...]. -// Include them with -fcuda-include-gpubinary. +// Host-side cuda compilation receives

[PATCH] D43461: [CUDA] Include single GPU binary, NFCI.

2018-02-19 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Hahnfeld added reviewers: jlebar, tra. Herald added a subscriber: cfe-commits. Binaries for multiple architectures are combined by fatbinary, so the current code was effectively not needed. Repository: rC Clang https://reviews.llvm.org/D43461 Files: