cuda-samples icon indicating copy to clipboard operation
cuda-samples copied to clipboard

LargeKernalParameter Error

Open naren2cmu opened this issue 1 year ago • 3 comments

hi, I have cuda 11.8 installed. I am getting this error when I run make to install cuda samples. What do I do?

make[1]: Entering directory '/home/naren/naren_research/cuda-samples/Samples/6_Performance/LargeKernelParameter'
/usr/local/cuda/bin/nvcc -ccbin g++ -I../../../Common  -m64    --std=c++11 --threads 0 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_89,code=sm_89 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 -o LargeKernelParameter.o -c LargeKernelParameter.cu
LargeKernelParameter.cu(58): Error: Formal parameter space overflowed (4104 bytes required, max 4096 bytes allowed) in function _Z13kernelDefault7param_tPi
LargeKernelParameter.cu(75): Error: Formal parameter space overflowed (32008 bytes required, max 4096 bytes allowed) in function _Z16kernelLargeParam13param_large_tPi

make[1]: *** [Makefile:324: LargeKernelParameter.o] Error 255
make[1]: Leaving directory '/home/naren/naren_research/cuda-samples/Samples/6_Performance/LargeKernelParameter'
make: *** [Makefile:45: Samples/6_Performance/LargeKernelParameter/Makefile.ph_build] Error 2

naren2cmu avatar Jul 10 '23 18:07 naren2cmu

I think the master branch is for CUDA 12.2; you'll have to checkout the last commit for CUDA 11.8 (by running git checkout 8199209). You can find the commit hash on the release page, or just copy the snippet above. This worked for me for CUDA 12.0, at least in order to compile the samples I wanted to run.

joshuaoreilly avatar Jul 27 '23 20:07 joshuaoreilly

I got the same error with CUDA 12.2

ct-777 avatar Sep 03 '23 20:09 ct-777