debug: print mhc_sinkhorn CUDA kernel compile errors
This commit is contained in:
@@ -99,7 +99,8 @@ def sinkhorn_knopp(
|
||||
from dsv4.kernels.cuda.loader import get_cuda_module
|
||||
mod = get_cuda_module("mhc_sinkhorn", ["mhc_sinkhorn.cu"])
|
||||
return mod.mhc_sinkhorn(logits.float(), t_max, eps)
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
import sys; print(f"mhc_sinkhorn CUDA kernel failed: {e}, falling back to Python", file=sys.stderr, flush=True)
|
||||
pass # Fall back to Python
|
||||
|
||||
# Python fallback
|
||||
|
||||
Reference in New Issue
Block a user