Commit Graph

64 Commits

Author SHA1 Message Date
Dylan Baker 499c44dc77 compilers/cuda: don't use re for replacement
Even with the check (for extra safety) string.replace is more than twice
as fast.
2019-08-14 13:13:23 -07:00
Dylan Baker cd5360821a compilers: split gnu and gnulike compilers out of compilers
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-07-15 10:59:22 -07:00
John Ericson 07777e15d4 Purge `is_cross` and friends without changing user interfaces
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-06-09 13:13:25 -04:00
Daniel Mensinger 971dfd664b
Added some cahced values 2019-04-28 14:33:21 +02:00
John M. Lindemon 939c00a972 Fix nvcc error with threads dependency (4999) 2019-02-28 21:02:14 +02:00
Olexa Bilaniuk 8838cfae73 Solve NVCC -Werror problem.
Partially addresses #4961.
2019-02-24 09:02:57 -05:00
Olexa Bilaniuk e632a81627 Rework CUDA sanity check.
PArtially addresses #4961.

Also make the sanity check do double duty as a GPU architecture
detection test.
2019-02-24 09:02:45 -05:00
jml1795 a9e63568fe Add warning level zero 2019-02-19 00:06:27 +02:00
Olexa Bilaniuk df0b734a17 Fixes for CUDA compiler shared library linking.
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-13 21:07:11 +02:00
Jussi Pakkanen 25ae7f95bd Add werror flags to nvcc. Closes #4911. 2019-02-13 10:29:10 +02:00
Jussi Pakkanen e1b50309df All the fixes needed to make work against current master. 2019-01-21 23:59:20 +02:00
Jussi Pakkanen 8eca221aac More tests and pic. 2019-01-21 23:35:38 +02:00
Jussi Pakkanen 396e355c94 Clean up minor issues. 2019-01-21 23:35:38 +02:00
Beau Johnston 54b6afa675 added cuda compiler 2019-01-21 23:35:38 +02:00