diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2021-02-19 11:03:08 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2021-02-19 11:03:08 +0100 |
commit | 520b02e8ce9c99bafc0e486e1f6e255ecfe660af (patch) | |
tree | 27729ee2784bf65f00884cb482e4df4a5ab329fc /build/linux | |
parent | fc891547234dfff9f8e687750efa1289768c53d7 (diff) | |
download | astra-520b02e8ce9c99bafc0e486e1f6e255ecfe660af.tar.gz astra-520b02e8ce9c99bafc0e486e1f6e255ecfe660af.tar.bz2 astra-520b02e8ce9c99bafc0e486e1f6e255ecfe660af.tar.xz astra-520b02e8ce9c99bafc0e486e1f6e255ecfe660af.zip |
Suppress nvcc deprecated-gpu-targets warning
Diffstat (limited to 'build/linux')
-rw-r--r-- | build/linux/acinclude.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/linux/acinclude.m4 b/build/linux/acinclude.m4 index 4d278c7..e4c32ee 100644 --- a/build/linux/acinclude.m4 +++ b/build/linux/acinclude.m4 @@ -141,8 +141,12 @@ int main() { return 0; } _ACEOF -NVCC_lastarch="none" NVCC_extra="" +# Add -Wno-deprecated-gpu-targets option if supported +ASTRA_RUN_LOGOUTPUT([$NVCC -c -o conftest.o conftest.cu -Wno-deprecated-gpu-targets $NVCCFLAGS $$2]) && { + NVCC_extra="-Wno-deprecated-gpu-targets" +} +NVCC_lastarch="none" NVCC_list="" astra_save_IFS=$IFS IFS=, |