#ifndef gridsize #define gridsize 1024 #endif in CUDA I use. I add the -Dgridsize=8192…
- User
#ifndef gridsize #define gridsize 1024 #endifin CUDA I use. I add the -Dgridsize=8192 flag to the compiler, and it does not recognize it. Do you have any idea what could be going wrong? Assistant
The issue is likely with how the preprocessor macro is being passed to the CUDA compiler. Here are the most common causes and solutions:
-
Make sure you're using the correct compiler flag format for nvcc:
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.