[bug report] confusing nvcc error message

missing an argument of ‘–threads’ leads to confusing error message, say:

% nvcc --threads -Wno-deprecated-gpu-targets any.cu
nvcc fatal : ‘-Wno-deprecated-gpu-targets’: expected a number

should nvcc report ‘–threads’ expecting a number as argument?

=========================================================
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Thu_Jun__6_02:18:23_PDT_2024
Cuda compilation tools, release 12.5, V12.5.82
Build cuda_12.5.r12.5/compiler.34385749_0

nvcc is reporting that in place of the literal

it was expecting a number

1 Like

I see. Thanks for replying.