(base) C:\Users\24212>nvcc -v nvcc fatal : No input files specified; use option --help for more information
时间: 2024-05-27 21:12:24 浏览: 182
This error message is indicating that you did not specify any input files for the nvcc compiler. The nvcc compiler is used to compile CUDA code for NVIDIA GPUs.
To resolve this error, you should provide the input file or files that you would like to compile with nvcc. For example, if you have a file called "my_cuda_code.cu" in your current directory, you can compile it with the following command:
nvcc -o my_cuda_code my_cuda_code.cu
This will compile the "my_cuda_code.cu" file using nvcc and produce an executable file called "my_cuda_code". Note that the "-o" option is used to specify the name of the output file.
You can also use the "--help" option with nvcc to see more information about how to use the compiler and its options.
阅读全文