Loading...
cudaErrorPrimaryContextActive (708)cudaErrorPrimaryContextActive occurs when modifying context flags after context is active.
CUDA error: primary context active cudaErrorPrimaryContextActive
Before any CUDA.
cudaSetDeviceFlags(cudaDeviceScheduleBlockingSync); // FIRST
cudaSetDevice(0);Context active.
cudaSetDevice(0);
cudaSetDeviceFlags(flags); // Too late!Flags first.
cudaSetDeviceFlags(flags);
cudaSetDevice(0);Scheduling mode, map host memory, L1 config.
Need help debugging CUDA errors? Download RightNow AI for intelligent error analysis and optimization suggestions.