Loading...
cudaErrorUnsupportedLimit (215)cudaErrorUnsupportedLimit occurs when setting a limit not supported by the device.
CUDA error: unsupported limit cudaErrorUnsupportedLimit
Query limits.
int major;
cudaDeviceGetAttribute(&major, cudaDevAttrComputeCapabilityMajor, 0);Old GPU.
cudaDeviceSetLimit(cudaLimitPersistingL2CacheSize, size); // Requires CC 8.0+Check first.
if (major >= 8) cudaDeviceSetLimit(cudaLimitPersistingL2CacheSize, size);L2 cache limits need Ampere (CC 8.0+).
Need help debugging CUDA errors? Download RightNow AI for intelligent error analysis and optimization suggestions.