Skip to content

Commit 58ddcd7

Browse files
committed
Use has_rocm_gpu from AMDGPU.jl
1 parent c2417a1 commit 58ddcd7

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

examples/memcopy.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ if has_cuda_gpu()
3737
@test A == B
3838
end
3939

40-
function has_rocm_gpu()
41-
for agent in AMDGPU.get_agents()
42-
if agent.type == :gpu
43-
return true
44-
end
45-
end
46-
return false
47-
end
4840

4941
if has_rocm_gpu()
5042

examples/naive_transpose.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ if has_cuda_gpu()
6161
@test a == transpose(b)
6262
end
6363

64-
function has_rocm_gpu()
65-
for agent in AMDGPU.get_agents()
66-
if agent.type == :gpu
67-
return true
68-
end
69-
end
70-
return false
71-
end
7264

7365
if has_rocm_gpu()
7466
d_a = ROCArray(a)

0 commit comments

Comments
 (0)