David Seifert
4b7fd4cad1
cuda: add test for libs in stubs/
2025-05-21 10:48:58 -04:00
Paolo Bonzini
a7ea0cd7e4
add test case for cpp_std/cuda_std
...
This was broken twice, so check that it does not regress.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-04-04 12:46:55 +03:00
David Seifert
f4577911b4
cuda: avoid test failure without GPU available
...
Fixes #13269
2024-05-30 18:53:04 -04:00
David Seifert
6f3841e986
cuda: add test for late `add_languages('cuda')`
2024-05-29 19:13:14 -04:00
David Seifert
7efddcb909
cuda: add test for negative `find_library()` result
2024-05-22 23:54:30 +03:00
David Seifert
14de8ac5a9
cuda: add test for device linking
2024-05-07 22:32:35 -07:00
David Seifert
c55ca8272c
cuda: add test for C++ linking of dependency('cuda')
2024-05-07 22:32:35 -07:00
Xavier Claessens
8eaa2be5d9
Fix crash when getting cuda options
...
We could have an OptionOverrideProxy of an OptionOverrideProxy,
recursively. This fix is a minimal subset of the refactoring I did in
https://github.com/mesonbuild/meson/pull/9394 . Instead of faking
UserOption we can just do a shallow copy of one and set a new value on
it.
Fixes : #9448
2021-10-27 15:29:44 -04:00
Eli Schwartz
59d4f771d2
editorconfig: add setting to trim trailing whitespace
...
and clean up all outstanding issues
Skip 'test cases/common/141 special characters/meson.build' since it
intentionally uses trailing newlines.
2021-08-15 09:36:18 -04:00
Jussi Pakkanen
05d36ee394
Disable asan memory leak checks on a Cuda test.
2021-08-12 01:53:39 +03:00
David Seifert
5c45a26c27
Cuda: Add test for shared versioned internal libs
2021-07-18 23:14:40 +02:00
David Seifert
47a8e7ece7
Cuda: Add test for -isystem/usr/include
2021-07-18 23:14:37 +02:00
David Seifert
3b47d161e7
Cuda: Add test for -DNDEBUG
2021-07-18 23:14:35 +02:00
Olexa Bilaniuk
2579420a72
Strip host-compiler -std flag from NVCC line.
...
Closes #8523 .
2021-03-28 20:12:45 +03:00
Olexa Bilaniuk
4c1a0c400f
[CUDA] Bugfix: Forward sanitizer_*_args() methods to host compiler.
...
Enables -Db_sanitize=undefined and company.
Also serves as a testcase for NVCC comma-shielding: Because the test-
case declares `b_sanitize=address,undefined`, the host GCC compiler
needs `-fsanitize=address,undefined`, but this stands a danger of being
split by NVCC when wrapped with `-Xcompiler=args,args`. Special,
already-existing comma-shielding codepaths activate to prevent this
splitting.
Closes #8394 .
2021-02-22 23:56:55 +02:00
Olexa Bilaniuk
3f6977c866
Update CUDA module's nvcc_arch_flags() and nvcc_arch_readable() for new
...
CUDA Toolkits.
Also harden internal logic and add several asserts in the testcase.
2020-11-05 14:50:22 -05:00
Olexa Bilaniuk
cfd31e38a8
Add newer CUDA Toolkit version entries.
...
Also, remove the possibility of passing in a compiler instance to
min_driver_version. This is because the NVCC compiler instance is,
as of CUDA Toolkit 11.0, no longer guaranteed to be versioned
identically to the toolkit itself.
2020-11-05 14:50:22 -05:00
Carlos Bederian
71be873be2
Add CUDA compiler header symbol tests
2020-10-16 18:18:46 +02:00
Daniel Mensinger
0b0873c743
cuda: bump CUDA version since 3.0 is no longer supported
2020-09-02 23:15:06 +03:00
Matt Madison
56ebd5c740
Add test case for cuda compiler setting fix
...
Signed-off-by: Matt Madison <matt@madison.systems>
2020-09-02 17:48:39 +02:00
Jan Alexander Steffens (heftig)
03065f2f00
Fix CUDA test without devices.
...
Getting the runtime version fails when no devices are present.
2020-01-24 14:28:06 +02:00
Michael Hirsch, Ph.D
9aa766da64
refactor: cuda no unused args
2019-12-23 17:25:35 -05:00
Michael Hirsch, Ph.D
83b4e981c4
Use strict function prototypes
2019-11-18 22:21:36 +02:00
Aleksey Gurtovoy
f56ef583d3
dependency('cuda')
2019-11-05 22:17:44 +02:00
Aleksey Gurtovoy
6ac5db50c9
CUDA support on Windows
2019-09-24 14:22:20 -07:00
John M. Lindemon
939c00a972
Fix nvcc error with threads dependency (4999)
2019-02-28 21:02:14 +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
Olexa Bilaniuk
592af0b1af
Add unstable CUDA module.
...
Includes three general utility functions connected to CUDA, in
particular the crafting of -gencode flags as done in CMake:
https://github.com/Kitware/CMake/blob/master/Modules/FindCUDA/
select_compute_arch.cmake
2019-02-02 22:49:02 -05:00
Jussi Pakkanen
e1b50309df
All the fixes needed to make work against current master.
2019-01-21 23:59:20 +02:00
Jussi Pakkanen
1409751169
Convert basic test to print out card info.
2019-01-21 23:35:38 +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