[cutlass backend][test] re-enable test_cuda_compile_command for fbcode (#153001)

Differential Revision: [D74284047](https://our.internmc.facebook.com/intern/diff/D74284047/)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/153001
Approved by: https://github.com/ColinPeppler
This commit is contained in:
henrylhtsang 2025-05-06 15:58:45 -07:00 committed by PyTorch MergeBot
parent 62b7ef06cc
commit dd7d231ed3

View File

@ -2139,7 +2139,6 @@ class TestFxGraphCacheHashing(TestCase):
class TestCudaCompileCommand(TestCase):
@unittest.skipIf(not HAS_CUDA, "Requires CUDA")
@unittest.skipIf(config.is_fbcode(), "fbcode requires different CUTLASS path setup")
def test_cuda_compile_command(self):
cmd_no_extra_args: str = cuda_compile_command(
["abc.cu", "def.cu"], "output", "so"
@ -2161,7 +2160,7 @@ class TestCudaCompileCommand(TestCase):
CUDACodeCache.compile("test123.cu", "so", ["-Wsomething"])
check_output_mock.assert_called()
cmd_parts: list[str] = check_output_mock.call_args[0][0]
assert cmd_parts[0] == "nvcc", cmd_parts
assert cmd_parts[0].endswith("nvcc"), cmd_parts
assert "-Wsomething" in cmd_parts, cmd_parts
assert "-DNDEBUG" in cmd_parts, cmd_parts