-
Notifications
You must be signed in to change notification settings - Fork 31
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
Showing
7 changed files
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name = "Diffusion3D_minimal" | ||
uuid = "91637811-9d05-4227-81a2-fe1d069b6ecb" | ||
authors = ["Samuel Omlin <samuel.omlin@cscs.ch>"] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
ParallelStencil = "94395366-693c-11ea-3b26-d9b7aac5d958" | ||
|
||
[compat] | ||
ParallelStencil = ">= 0.4.0" | ||
|
||
[weakdeps] | ||
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e" | ||
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" | ||
|
||
[extensions] | ||
D3D_AMDGPUExt = "AMDGPU" | ||
D3D_CUDAExt = "CUDA" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module D3D_AMDGPUExt | ||
import Diffusion3D_minimal | ||
h() = return | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module D3D_CUDAExt | ||
import Diffusion3D_minimal | ||
g() = return | ||
end |
4 changes: 4 additions & 0 deletions
4
test/test_projects/Diffusion3D_minimal/src/Diffusion3D_minimal.jl
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module Diffusion3D_minimal | ||
using ParallelStencil | ||
f() = return | ||
end |
8 changes: 8 additions & 0 deletions
8
test/test_projects/Diffusion3D_minimal/test/localtest_diffusion_AMDGPU.jl
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
push!(LOAD_PATH, "@stdlib") # NOTE: this is needed to enable this test to run from the Pkg manager | ||
push!(LOAD_PATH, joinpath(@__DIR__, "..")) | ||
using Test | ||
using Pkg | ||
Pkg.activate(joinpath(@__DIR__, "test_projects", "Diffusion3D_minimal")) | ||
Pkg.instantiate() | ||
import AMDGPU | ||
using Diffusion3D_minimal |
8 changes: 8 additions & 0 deletions
8
test/test_projects/Diffusion3D_minimal/test/localtest_diffusion_CUDA.jl
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
push!(LOAD_PATH, "@stdlib") # NOTE: this is needed to enable this test to run from the Pkg manager | ||
push!(LOAD_PATH, joinpath(@__DIR__, "..")) | ||
using Test | ||
using Pkg | ||
Pkg.activate(joinpath(@__DIR__, "test_projects", "Diffusion3D_minimal")) | ||
Pkg.instantiate() | ||
import CUDA | ||
using Diffusion3D_minimal |
7 changes: 7 additions & 0 deletions
7
test/test_projects/Diffusion3D_minimal/test/localtest_diffusion_Threads.jl
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
push!(LOAD_PATH, "@stdlib") # NOTE: this is needed to enable this test to run from the Pkg manager | ||
push!(LOAD_PATH, joinpath(@__DIR__, "..")) | ||
using Test | ||
using Pkg | ||
Pkg.activate(joinpath(@__DIR__, "test_projects", "Diffusion3D_minimal")) | ||
Pkg.instantiate() | ||
using Diffusion3D_minimal |