summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cuda.py
Commit message (Collapse)AuthorAgeFilesLines
* move OptionKey to mesonlibDylan Baker2021-01-041-2/+4
| | | | | There's starting to be a lot of things including coredata that coredata needs to itself include. putting it in mesonlib makes more sense
* use OptionKey for compiler_optionsDylan Baker2021-01-041-7/+10
|
* compilers: Standardize the names of compiler optionsDylan Baker2020-11-121-4/+4
| | | | | | Most options don't use language prefaced options (std vs c_std) internally, as we don't need that due to namespacing. Let's do that across the board
* compilers/cuda: Use format_map(mapping) instead of format(**mapping)Carlos Bederian2020-10-161-2/+2
|
* compilers/cuda: Fix has_header_symbol checkCarlos Bederian2020-10-161-4/+17
|
* compilers/cuda: make type safeDylan Baker2020-10-011-49/+65
|
* compilres: move depfile_for_object to compilerDylan Baker2020-10-011-4/+1
|
* compilers: move get_dependency_gen_args to base CompilerDylan Baker2020-10-011-3/+0
| | | | | | So that every subclass doesn't have to reimplement it. Especially since the Gnu implementation moved out of the CCompiler and into the GnuLikeCompiler mixin
* compilers/cpp: Add type annotationsDylan Baker2020-10-011-1/+1
|
* compilers: put name_string method in base compilerDylan Baker2020-09-241-3/+0
| | | | Every language had the exact same implementation
* compilers/compilers: Fully type annotateDylan Baker2020-09-241-2/+2
|
* Fix native builds on Windows ARM64 machinesNirbheek Chauhan2020-07-131-3/+0
| | | | | | | | | | | | | | | | | | | I made the mistake of always selecting the debug CRT for compiler checks on Windows 4 years ago: https://github.com/mesonbuild/meson/pull/543 https://github.com/mesonbuild/meson/pull/614 The idea was to always build the tests with debugging enabled so that the compiler doesn't optimize the tests away. But we stopped doing that a while ago, and also the debug CRT has no relation to that. We should select the CRT in the same way that we do for building targets: based on the options. On Windows ARM64, the debug CRT for ARM64 isn't always available, and the release CRT is available only after installing the runtime package. Without this, we will always try to pick the debug CRT even when --buildtype=debugoptimized or release.
* Let .pc files specify rpath.Dan Kegel2020-05-161-3/+4
| | | | Fixes #4027
* types: import typing as T (fixes #6333)Daniel Mensinger2020-01-081-8/+8
|
* compilers: Make get_display_language a class or static methodDylan Baker2019-12-121-3/+0
| | | | | | | | Currently this is done at the instance level, but we need it at the class level to allow compiler "lang" args to be gotten early enough. This patch also removes a couple of instance of branch/leaf classes providing their own implementation that is identical to the Compiler version.
* compilers: move language attribute to the class levelDylan Baker2019-12-121-2/+1
| | | | | We know that if a compiler class inherits CCompiler it's language will be C, so doing this at the class level makes more sense.
* Use strict function prototypesMichael Hirsch, Ph.D2019-11-181-1/+1
|
* Fix typos found by codespellWolfgang Stöggl2019-11-061-2/+2
| | | | - Typos were found by codespell v1.16.0
* dependency('cuda')Aleksey Gurtovoy2019-11-051-1/+4
|
* compilers: replace CompilerType with MachineInfoDylan Baker2019-10-071-2/+4
| | | | | | Now that the linkers are split out of the compilers this enum is only used to know what platform we're compiling for. Which is what the MachineInfo class is for
* CUDA support on WindowsAleksey Gurtovoy2019-09-241-18/+101
|
* Create CUDA linker with CUDA compilerKramer Peace2019-09-051-6/+2
| | | | | Since they are laways paired there is no need to "search" for the cuda linker.
* Add a CUDA linker objectKramer Peace2019-09-051-1/+5
| | | | Fixes issue #5870
* compilers: Move the compiler argument to proxy linker flags to the compiler ↵Dylan Baker2019-08-301-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.
* compilers: Dispatch to dynamic linker classDylan Baker2019-08-141-32/+26
| | | | | Most of the cuda code is from Olexa Bilaniuk. Most of the PGI code is from Michael Hirsc
* compilers/cuda: pass through extra kwargsDylan Baker2019-08-141-2/+2
|
* compilers/cuda: don't use re for replacementDylan Baker2019-08-141-3/+2
| | | | | Even with the check (for extra safety) string.replace is more than twice as fast.
* compilers: split gnu and gnulike compilers out of compilersDylan Baker2019-07-151-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.
* Purge `is_cross` and friends without changing user interfacesJohn Ericson2019-06-091-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.
* Added some cahced valuesDaniel Mensinger2019-04-281-2/+3
|
* Fix nvcc error with threads dependency (4999)John M. Lindemon2019-02-281-1/+4
|
* Solve NVCC -Werror problem.Olexa Bilaniuk2019-02-241-1/+1
| | | | Partially addresses #4961.
* Rework CUDA sanity check.Olexa Bilaniuk2019-02-241-69/+81
| | | | | | | PArtially addresses #4961. Also make the sanity check do double duty as a GPU architecture detection test.
* Add warning level zerojml17952019-02-191-1/+2
|
* Fixes for CUDA compiler shared library linking.Olexa Bilaniuk2019-02-131-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.
* Add werror flags to nvcc. Closes #4911.Jussi Pakkanen2019-02-131-0/+3
|
* All the fixes needed to make work against current master.Jussi Pakkanen2019-01-211-1/+10
|
* More tests and pic.Jussi Pakkanen2019-01-211-0/+3
|
* Clean up minor issues.Jussi Pakkanen2019-01-211-4/+6
|
* added cuda compilerBeau Johnston2019-01-211-0/+188