From f1dadd1710563fc44aee7915cd4b32a30787c303 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Mon, 26 Oct 2026 22:03:44 +0100 Subject: [PATCH] fused_gr: the persistent hyper-connection read's barrier only calls __nanosleep on sm_70 and newer (the sm_60 build of f-027-int2 failed on it) --- src/kernels/cuda/fused_gr.cu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernels/cuda/fused_gr.cu b/src/kernels/cuda/fused_gr.cu index 6f6f3232..fe867298 100644 --- a/src/kernels/cuda/fused_gr.cu +++ b/src/kernels/cuda/fused_gr.cu @@ -2797,7 +2797,9 @@ __device__ __forceinline__ bool grid_sync(unsigned* bar, unsigned long long tick while (vb[32] == gen) { if (vb[48] != 0u) { ab = 1; break; } if (clock64() - t0 > (long long) ticks) { atomicExch(&bar[48], 1u); ab = 1; break; } - __nanosleep(64); +#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 700 + __nanosleep(64); // (sm_60 has no nanosleep: the barrier spins) +#endif } } if (vb[48] != 0u) ab = 1;