summaryrefslogtreecommitdiffstats
path: root/build/linux
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2021-02-19 11:03:08 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2021-02-19 11:03:08 +0100
commit520b02e8ce9c99bafc0e486e1f6e255ecfe660af (patch)
tree27729ee2784bf65f00884cb482e4df4a5ab329fc /build/linux
parentfc891547234dfff9f8e687750efa1289768c53d7 (diff)
downloadastra-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.m46
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=,