From 520b02e8ce9c99bafc0e486e1f6e255ecfe660af Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Fri, 19 Feb 2021 11:03:08 +0100 Subject: Suppress nvcc deprecated-gpu-targets warning --- build/linux/acinclude.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build') 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=, -- cgit v1.2.3