commonpy_xformers-0.0.23.rocm.patch 813 B

12345678910111213
  1. --- /opt/conda/envs/py_3.10/lib/python3.10/site-packages/xformers/ops/fmha/common.py 2023-11-29 03:17:03.930103539 +0000
  2. +++ common.py 2023-11-28 16:14:19.846233146 +0000
  3. @@ -298,8 +298,8 @@
  4. dtype = d.query.dtype
  5. if device_type not in cls.SUPPORTED_DEVICES:
  6. reasons.append(f"device={device_type} (supported: {cls.SUPPORTED_DEVICES})")
  7. - if device_type == "cuda" and not _built_with_cuda:
  8. - reasons.append("xFormers wasn't build with CUDA support")
  9. + #if device_type == "cuda" and not _built_with_cuda:
  10. + # reasons.append("xFormers wasn't build with CUDA support")
  11. if device_type == "cuda":
  12. device_capability = torch.cuda.get_device_capability(d.device)
  13. if device_capability < cls.CUDA_MINIMUM_COMPUTE_CAPABILITY: