-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from PhilipFackler/count-intersections
Count intersections
- Loading branch information
Showing
12 changed files
with
368 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
MV_DIR=/home/4pf/MiniVATES.jl | ||
|
||
module load nvhpc | ||
|
||
#export CUDA_HOME=/sw/wombat/Nvidia_HPC_SDK/Linux_aarch64/24.5/cuda/12.4 | ||
|
||
# rm -f $MV_DIR/Manifest.toml | ||
# rm -f $MV_DIR/LocalPreferences.toml | ||
|
||
julia --project=$MV_DIR -e 'using Pkg; Pkg.instantiate()' | ||
|
||
# MPI + CUDA | ||
julia --project=$MV_DIR -e ' \ | ||
using Pkg; \ | ||
if !haskey(Pkg.project().dependencies, "MPIPreferences"); \ | ||
Pkg.add("MPIPreferences"); \ | ||
end; \ | ||
using MPIPreferences; \ | ||
MPIPreferences.use_jll_binary(); \ | ||
using MPI; \ | ||
MPI.install_mpiexecjl(force = true); \ | ||
if !haskey(Pkg.project().dependencies, "CUDA"); \ | ||
Pkg.add("CUDA"); \ | ||
end; \ | ||
using CUDA; \ | ||
' | ||
|
||
# JACC | ||
julia --project=$MV_DIR -e ' \ | ||
using Pkg; \ | ||
jaccInfo = Pkg.dependencies()[Pkg.project().dependencies["JACC"]]; \ | ||
if jaccInfo.git_revision != "fix-cuda-thread-counts-2d"; \ | ||
Pkg.add(; name="JACC", url = "https://github.com/PhilipFackler/JACC.jl.git", rev = "fix-cuda-thread-counts-2d"); \ | ||
end; \ | ||
using JACC; \ | ||
JACC.JACCPreferences.set_backend("cuda"); \ | ||
' | ||
|
||
# Verify the packages are installed correctly | ||
julia --project=$MV_DIR -e 'using Pkg; Pkg.instantiate()' | ||
julia --project=$MV_DIR -e ' \ | ||
using Pkg; \ | ||
Pkg.status(); \ | ||
using CUDA; \ | ||
CUDA.versioninfo(); \ | ||
' |
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.