diff --git a/Src/ILGPU/Runtime/Velocity/VelocityDevice.cs b/Src/ILGPU/Runtime/Velocity/VelocityDevice.cs index e2793482e..567132954 100644 --- a/Src/ILGPU/Runtime/Velocity/VelocityDevice.cs +++ b/Src/ILGPU/Runtime/Velocity/VelocityDevice.cs @@ -67,7 +67,11 @@ public VelocityDevice(VelocityDeviceType deviceType) .AsNotNullCast(); WarpSize = TargetSpecializer.WarpSize; MaxNumThreadsPerGroup = MaxNumThreadsPerMultiprocessor = WarpSize; +#if DEBUG + NumMultiprocessors = 1; +#else NumMultiprocessors = Environment.ProcessorCount; +#endif MaxGroupSize = new Index3D( MaxNumThreadsPerGroup, 1,