aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cuda.py
AgeCommit message (Collapse)AuthorFilesLines
2019-09-24CUDA support on WindowsAleksey Gurtovoy1-18/+101
2019-09-05Create CUDA linker with CUDA compilerKramer Peace1-6/+2
Since they are laways paired there is no need to "search" for the cuda linker.
2019-09-05Add a CUDA linker objectKramer Peace1-1/+5
Fixes issue #5870
2019-08-30compilers: Move the compiler argument to proxy linker flags to the compiler ↵Dylan Baker1-11/+5
class Instead of the DynamicLinker returning a hardcoded value like `-Wl,-foo`, it now is passed a value that could be '-Wl,', or could be something '-Xlinker=' This makes a few things cleaner, and will make it possible to fix using clang (not clang-cl) on windows, where it invokes either link.exe or lld-link.exe instead of a gnu-ld compatible linker.
2019-08-14compilers: Dispatch to dynamic linker classDylan Baker1-32/+26
Most of the cuda code is from Olexa Bilaniuk. Most of the PGI code is from Michael Hirsc
2019-08-14compilers/cuda: pass through extra kwargsDylan Baker1-2/+2
2019-08-14compilers/cuda: don't use re for replacementDylan Baker1-3/+2
Even with the check (for extra safety) string.replace is more than twice as fast.
2019-07-15compilers: split gnu and gnulike compilers out of compilersDylan Baker1-1/+2
I debated a bit whether both classes really belong in the same module, and decided that they do because the share a number of helpers.
2019-06-09Purge `is_cross` and friends without changing user interfacesJohn Ericson1-3/+3
In most cases instead pass `for_machine`, the name of the relevant machines (what compilers target, what targets run on, etc). This allows us to use the cross code path in the native case, deduplicating the code. As one can see, environment got bigger as more information is kept structured there, while ninjabackend got a smaller. Overall a few amount of lines were added, but the hope is what's added is a lot simpler than what's removed.
2019-04-28Added some cahced valuesDaniel Mensinger1-2/+3
2019-02-28Fix nvcc error with threads dependency (4999)John M. Lindemon1-1/+4
2019-02-24Solve NVCC -Werror problem.Olexa Bilaniuk1-1/+1
Partially addresses #4961.
2019-02-24Rework CUDA sanity check.Olexa Bilaniuk1-69/+81
PArtially addresses #4961. Also make the sanity check do double duty as a GPU architecture detection test.
2019-02-19Add warning level zerojml17951-1/+2
2019-02-13Fixes for CUDA compiler shared library linking.Olexa Bilaniuk1-8/+29
Also adds test case for shared library linking. Closes #4912, at least on Linux. The future 0.50.0 does not yet claim to support CUDA on systems other than Linux and backends other than Ninja.
2019-02-13Add werror flags to nvcc. Closes #4911.Jussi Pakkanen1-0/+3
2019-01-21All the fixes needed to make work against current master.Jussi Pakkanen1-1/+10
2019-01-21More tests and pic.Jussi Pakkanen1-0/+3
2019-01-21Clean up minor issues.Jussi Pakkanen1-4/+6
2019-01-21added cuda compilerBeau Johnston1-0/+188