-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2a0804
commit e002e63
Showing
13 changed files
with
135 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
[deps] | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Preferences = "21216c6a-2e73-6563-6e65-726566657250" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[weakdeps] | ||
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e" | ||
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
oneAPI = "8f75cd03-7ff8-4ecb-9b8f-daf728133b1b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
import JACC | ||
using JACC | ||
using CUDA | ||
using AMDGPU | ||
using oneAPI | ||
using Test | ||
|
||
using Pkg | ||
|
||
const backend = JACC.JACCPreferences.backend | ||
|
||
@static if backend == "cuda" | ||
Pkg.add(name="CUDA", version="v5.1.1") | ||
@show "CUDA backend loaded" | ||
include("tests_cuda.jl") | ||
@testset "JACC Tests" begin | ||
if CUDA.functional() | ||
@testset "CUDA" begin | ||
println("CUDA backend") | ||
include("tests_cuda.jl") | ||
end | ||
end | ||
|
||
elseif backend == "amdgpu" | ||
Pkg.add(name="AMDGPU", version="v0.8.6") | ||
@show "AMDGPU backend loaded" | ||
include("tests_amdgpu.jl") | ||
if AMDGPU.functional() | ||
@testset "AMDGPU" begin | ||
println("AMDGPU backend") | ||
include("tests_amdgpu.jl") | ||
end | ||
end | ||
|
||
elseif backend == "oneapi" | ||
Pkg.add("oneAPI") | ||
@show "OneAPI backend loaded" | ||
include("tests_oneapi.jl") | ||
if oneAPI.functional() | ||
@testset "oneAPI" begin | ||
println("OneAPI backend") | ||
include("tests_oneapi.jl") | ||
end | ||
end | ||
|
||
elseif backend == "threads" | ||
@show "Threads backend loaded" | ||
@testset "ThreadsBackend" begin | ||
println("Threads backend") | ||
include("tests_threads.jl") | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.