Skip to content

Commit

Permalink
sm_35 isn't supported in CUDA 12
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Nov 26, 2023
1 parent 14af655 commit d2c5c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def test_has_methods(self):

def test_compile_fail(self):
with self.assertRaises(RuntimeError):
cuda_compile("__device__ void test() { {", ["--gpu-architecture=sm_35"], CUDACompile, check)
cuda_compile("__device__ void test() { {", ["--gpu-architecture=sm_60"], CUDACompile, check)

def test_compile(self):
prg = cuda_compile("__device__ int test() { return 42; }", ["--gpu-architecture=sm_35"], CUDACompile, check)
prg = cuda_compile("__device__ int test() { return 42; }", ["--gpu-architecture=sm_60"], CUDACompile, check)
assert len(prg) > 10

@unittest.skipIf(CI, "cuda doesn't work in CI")
Expand Down

0 comments on commit d2c5c7b

Please sign in to comment.