Skip to content

Commit dd18be8

Browse files
authored
Fix test dependencies
- Fix and move test dependencies into `test/Project.toml`. - Ensure tests pass if not on a system with Metal.
1 parent 5d8bf4e commit dd18be8

3 files changed

Lines changed: 22 additions & 14 deletions

File tree

Project.toml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,7 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1515
[compat]
1616
Adapt = "1, 2, 3"
1717
Dagger = "0.13.3, 0.14, 0.15, 0.16"
18-
KernelAbstractions = "0.5, 0.6, 0.7"
18+
KernelAbstractions = "0.5, 0.6, 0.7, 0.8"
1919
MemPool = "0.3, 0.4"
2020
Requires = "1"
21-
julia = "1"
22-
23-
[extras]
24-
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
25-
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
26-
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
27-
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"
28-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
29-
30-
[targets]
31-
test = ["AMDGPU", "CUDA", "Distributed", "Test"]
21+
julia = "1.6"

test/Project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[deps]
2+
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
3+
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
4+
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
5+
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"
6+
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
7+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
8+
KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
9+
Dagger = "d58978e5-989f-55fb-8d15-ea34adc7bf54"

test/runtests.jl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
using Distributed
21
using Test
2+
using Distributed
33
addprocs(2, exeflags="--project")
44

55
@everywhere begin
6-
using CUDA, AMDGPU, Metal, KernelAbstractions
6+
try using CUDA
7+
catch end
8+
9+
try using AMDGPU
10+
catch end
11+
12+
try using Metal
13+
catch end
14+
715
using Distributed, Dagger, DaggerGPU
16+
using KernelAbstractions
817
end
918
@everywhere begin
1019
function myfunc(X)

0 commit comments

Comments
 (0)