-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: (fixed) KomaMRICore/src/rawdata/ISMRMRD.jl Changes to be committed: modified: KomaMRIBase/Project.toml modified: KomaMRIBase/src/KomaMRIBase.jl modified: KomaMRICore/Project.toml modified: KomaMRICore/src/KomaMRICore.jl modified: KomaMRICore/src/rawdata/ISMRMRD.jl modified: KomaMRICore/src/simulation/SimulatorCore.jl modified: KomaMRICore/test/Project.toml deleted: KomaMRICore/test/initialize.jl new file: KomaMRICore/test/initialize_backend.jl modified: KomaMRICore/test/runtests.jl modified: KomaMRIFiles/Project.toml modified: KomaMRIFiles/src/KomaMRIFiles.jl modified: KomaMRIFiles/src/Phantom/Phantom.jl modified: KomaMRIPlots/Project.toml modified: KomaMRIPlots/src/KomaMRIPlots.jl modified: Project.toml modified: src/KomaMRI.jl modified: src/KomaUI.jl
- Loading branch information
Showing
18 changed files
with
86 additions
and
101 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
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 was deleted.
Oops, something went wrong.
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,27 @@ | ||
# Filtering ARGS (useful for VSCode testing) | ||
AVAILABLE_GPU_BACKENDS = ["CUDA", "AMDGPU", "Metal", "oneAPI"] | ||
TEST_BACKENDS = filter(x->x in [AVAILABLE_GPU_BACKENDS; "CPU"], ARGS) | ||
# Use package preferences if test_args are not specified | ||
if isempty(TEST_BACKENDS) | ||
using Preferences | ||
TEST_BACKENDS = [load_preference(KomaMRICore, "test_backend", "CPU")] | ||
@info "Using [preferences.KomaMRICore]." backend=first(TEST_BACKENDS) | ||
else | ||
@info "Using test_args" backend=first(TEST_BACKENDS) | ||
end | ||
# For testing with CUDA: ] add CUDA to KomaMRICore/test/Project.toml | ||
# For testing with AMDGPU: ] add AMDGPU to KomaMRICore/test/Project.toml | ||
# For testing with Metal: ] add Metal to KomaMRICore/test/Project.toml | ||
# For testing with oneAPI: ] add oneAPI to KomaMRICore/test/Project.toml | ||
USE_GPU = any(AVAILABLE_GPU_BACKENDS .∈ Ref(TEST_BACKENDS)) | ||
if "CUDA" in TEST_BACKENDS | ||
using CUDA | ||
elseif "AMDGPU" in TEST_BACKENDS | ||
using AMDGPU | ||
elseif "Metal" in TEST_BACKENDS | ||
using Metal | ||
elseif "oneAPI" in TEST_BACKENDS | ||
using oneAPI | ||
else | ||
@info "CPU using $(Threads.nthreads()) thread(s)" maxlog=1 | ||
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.