-
Notifications
You must be signed in to change notification settings - Fork 3
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 #3 from patricialarsen/add_xrays
Everything
- Loading branch information
Showing
26 changed files
with
1,735 additions
and
300 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 |
---|---|---|
@@ -1,53 +1,55 @@ | ||
CC = ${HACC_MPI_CC} | ||
CXX = ${HACC_MPI_CXX} | ||
|
||
HPXDIR = /home/prlarsen/codes/Healpix_3.82 | ||
CFITSDIR = /home/prlarsen/codes/cfitsio-4.4.1/build | ||
ENVLOC = frontier.kokkos_hip | ||
|
||
GIODIR = /home/prlarsen/codes/HACC/aurora.kokkos_sycl_thirdparty/mpi | ||
HACCDIR = /home/prlarsen/codes/HACC | ||
|
||
HACCLIB = -qopenmp -lm -lpthread -fsycl -fsycl-targets=spir64_gen -Xsycl-target-backend '-device 12.60.7' -L${HACCDIR}/thirdparty/aurora/lib64 -lkokkoscontainers -lkokkoscore -ldl | ||
HPXDIR = /ccs/home/prlarsen/codes/Healpix_3.82 | ||
CFITSDIR = /ccs/home/prlarsen/codes/cfitsio-4.4.0/build | ||
GIODIR = /ccs/home/prlarsen/codes/HACC/frontier.kokkos_hip/mpi | ||
HACCDIR = /ccs/home/prlarsen/codes/HACC | ||
|
||
SCDIR = src | ||
|
||
HACCLIB = -lm -fopenmp | ||
|
||
HPXCINCDIR = -I${HPXDIR}/include | ||
HPXINCDIR = -I${HPXDIR}/include/healpix_cxx | ||
HPXLIBDIR = ${HPXDIR}/lib | ||
CFTLIBDIR = ${CFITSDIR}/lib | ||
|
||
GIOINCDIR = -I${HACCDIR}/submodules/genericio | ||
GIOLIBDIR = ${GIODIR}/lib | ||
|
||
HACCINCDIR = -I${HACCDIR}/cosmotools/algorithms/halofinder | ||
HACCINCDIR2 = -I${HACCDIR}/cosmotools/common | ||
HYDROINC = ${HACCDIR}/aurora.kokkos_sycl_thirdparty/mpi/nbody/common | ||
HYDROINC = ${HACCDIR}/${ENVLOC}/mpi/nbody/common | ||
HYDROINC2 = -I${HACCDIR}/nbody/common | ||
HYDROINC3 = ${HACCDIR}/aurora.kokkos_sycl_thirdparty/mpi/cosmotools/algorithms/halofinder | ||
HYDROINC3 = ${HACCDIR}/${ENVLOC}/mpi/cosmotools/algorithms/halofinder | ||
BLOSCDIR = -I${GIODIR}/genericio/thirdparty/blosc | ||
|
||
|
||
INCDIRS = ${GIOINCDIR} ${HPXINCDIR} ${HPXCINCDIR} ${BLOSCDIR} ${HACCINCDIR} ${HACCINCDIR2} ${HYDROINC2} -I${HYDROINC3} -I./inc/ | ||
LIBDIRS = -L${HPXLIBDIR} -L${GIOLIBDIR} -L${CFTLIBDIR} | ||
|
||
|
||
go_compile: ${SCDIR}/gravonly.cxx | ||
${CXX} -g -O3 -qopenmp -c ${INCDIRS} ${SCDIR}/gravonly.cxx ${SCDIR}/utils_gravonly.cxx ${SCDIR}/pix_funcs_gravonly.cxx ${SCDIR}/PLParticles.cxx -std=c++17 ${HACC_MPI_CXXFLAGS} | ||
${CXX} -g -O3 -fopenmp -c ${INCDIRS} ${SCDIR}/gravonly.cxx ${SCDIR}/utils_gravonly.cxx ${SCDIR}/pix_funcs_gravonly.cxx ${SCDIR}/PLParticles.cxx -std=c++17 ${HACC_MPI_CXXFLAGS} | ||
|
||
go_link: ${SCDIR}/gravonly.cxx | ||
${CXX} -g -O3 -qopenmp -o dens gravonly.o utils_gravonly.o pix_funcs_gravonly.o PLParticles.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lhealpix_cxx -std=c++17 ${HACCLIB} | ||
${CXX} -g -O3 -fopenmp -o dens gravonly.o utils_gravonly.o pix_funcs_gravonly.o PLParticles.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lhealpix_cxx -std=c++17 ${HACCLIB} | ||
|
||
|
||
|
||
main_compile: ${SCDIR}/main.cxx | ||
${CXX} -g -O3 -qopenmp -c ${INCDIRS} ${SCDIR}/main.cxx ${SCDIR}/utils_dm.cxx ${SCDIR}/pix_funcs_dm.cxx ${SCDIR}/PLParticles.cxx -std=c++17 ${HACC_MPI_CXXFLAGS} | ||
main_compile: main.cxx | ||
${CXX} -c -fopenmp ${INCDIRS} ${SCDIR}/main.cxx utils.cxx pix_funcs.cxx PLParticles.cxx -std=c++11 | ||
|
||
main_link: ${SCDIR}/main.cxx | ||
${CXX} -g -O3 -qopenmp -o dens main.o utils_dm.o pix_funcs_dm.o PLParticles.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lhealpix_cxx -std=c++17 ${HACCLIB} | ||
main_link: main.cxx | ||
${CXX} -O3 -fopenmp -o dens main.o utils.o pix_funcs.o PLParticles.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lchealpix -lhealpix_cxx -std=c++11 | ||
|
||
|
||
hydro_compile: ${SCDIR}/hydro.cxx | ||
${CXX} -g -O3 -qopenmp -c ${INCDIRS} ${SCDIR}/hydro.cxx ${SCDIR}/utils.cxx ${SCDIR}/pix_funcs.cxx ${SCDIR}/PLParticles.cxx ${SCDIR}/PLHalos.cxx -std=c++17 | ||
${CXX} -c -fopenmp ${INCDIRS} ${SCDIR}/hydro.cxx ${SCDIR}/utils.cxx ${SCDIR}/pix_funcs.cxx ${SCDIR}/PLParticles.cxx ${SCDIR}/PLHalos.cxx -std=c++17 | ||
|
||
hydro_link: ${SCDIR}/hydro.cxx | ||
${CXX} -g -O3 -qopenmp -o hydro_xray hydro.o utils.o pix_funcs.o PLParticles.o PLHalos.o ${HYDROINC3}/RadiativeCooling.o ${HYDROINC}/Domain.o ${GIODIR}/cosmotools/algorithms/halofinder/Partition.o ${GIODIR}/cosmotools/algorithms/halofinder/dims.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lhealpix_cxx -std=c++17 | ||
${CXX} -O3 -fopenmp -o hydro_xray hydro.o utils.o pix_funcs.o PLParticles.o PLHalos.o ${HYDROINC3}/RadiativeCooling.o ${HYDROINC}/Domain.o ${GIODIR}/cosmotools/algorithms/halofinder/Partition.o ${GIODIR}/cosmotools/algorithms/halofinder/dims.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lchealpix -lhealpix_cxx -std=c++17 | ||
|
||
|
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,53 @@ | ||
CC = ${HACC_MPI_CC} | ||
CXX = ${HACC_MPI_CXX} | ||
|
||
HPXDIR = /home/prlarsen/codes/Healpix_3.82 | ||
CFITSDIR = /home/prlarsen/codes/cfitsio-4.4.1/build | ||
|
||
GIODIR = /home/prlarsen/codes/HACC/aurora.kokkos_sycl_thirdparty/mpi | ||
HACCDIR = /home/prlarsen/codes/HACC | ||
|
||
HACCLIB = -qopenmp -lm -lpthread -fsycl -fsycl-targets=spir64_gen -Xsycl-target-backend '-device 12.60.7' -L${HACCDIR}/thirdparty/aurora/lib64 -lkokkoscontainers -lkokkoscore -ldl | ||
|
||
SCDIR = src | ||
|
||
HPXCINCDIR = -I${HPXDIR}/include | ||
HPXINCDIR = -I${HPXDIR}/include/healpix_cxx | ||
HPXLIBDIR = ${HPXDIR}/lib | ||
CFTLIBDIR = ${CFITSDIR}/lib | ||
|
||
GIOINCDIR = -I${HACCDIR}/submodules/genericio | ||
GIOLIBDIR = ${GIODIR}/lib | ||
|
||
HACCINCDIR = -I${HACCDIR}/cosmotools/algorithms/halofinder | ||
HACCINCDIR2 = -I${HACCDIR}/cosmotools/common | ||
HYDROINC = ${HACCDIR}/aurora.kokkos_sycl_thirdparty/mpi/nbody/common | ||
HYDROINC2 = -I${HACCDIR}/nbody/common | ||
HYDROINC3 = ${HACCDIR}/aurora.kokkos_sycl_thirdparty/mpi/cosmotools/algorithms/halofinder | ||
BLOSCDIR = -I${GIODIR}/genericio/thirdparty/blosc | ||
|
||
|
||
INCDIRS = ${GIOINCDIR} ${HPXINCDIR} ${HPXCINCDIR} ${BLOSCDIR} ${HACCINCDIR} ${HACCINCDIR2} ${HYDROINC2} -I${HYDROINC3} -I./inc/ | ||
LIBDIRS = -L${HPXLIBDIR} -L${GIOLIBDIR} -L${CFTLIBDIR} | ||
|
||
go_compile: ${SCDIR}/gravonly.cxx | ||
${CXX} -g -O3 -qopenmp -c ${INCDIRS} ${SCDIR}/gravonly.cxx ${SCDIR}/utils_gravonly.cxx ${SCDIR}/pix_funcs_gravonly.cxx ${SCDIR}/PLParticles.cxx -std=c++17 ${HACC_MPI_CXXFLAGS} | ||
|
||
go_link: ${SCDIR}/gravonly.cxx | ||
${CXX} -g -O3 -qopenmp -o dens gravonly.o utils_gravonly.o pix_funcs_gravonly.o PLParticles.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lhealpix_cxx -std=c++17 ${HACCLIB} | ||
|
||
|
||
main_compile: ${SCDIR}/main.cxx | ||
${CXX} -g -O3 -qopenmp -c ${INCDIRS} ${SCDIR}/main.cxx ${SCDIR}/utils_dm.cxx ${SCDIR}/pix_funcs_dm.cxx ${SCDIR}/PLParticles.cxx -std=c++17 ${HACC_MPI_CXXFLAGS} | ||
|
||
main_link: ${SCDIR}/main.cxx | ||
${CXX} -g -O3 -qopenmp -o dens main.o utils_dm.o pix_funcs_dm.o PLParticles.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lhealpix_cxx -std=c++17 ${HACCLIB} | ||
|
||
|
||
hydro_compile: ${SCDIR}/hydro.cxx | ||
${CXX} -g -O3 -qopenmp -c ${INCDIRS} ${SCDIR}/hydro.cxx ${SCDIR}/utils.cxx ${SCDIR}/pix_funcs.cxx ${SCDIR}/PLParticles.cxx ${SCDIR}/PLHalos.cxx -std=c++17 | ||
|
||
hydro_link: ${SCDIR}/hydro.cxx | ||
${CXX} -g -O3 -qopenmp -o hydro_xray hydro.o utils.o pix_funcs.o PLParticles.o PLHalos.o ${HYDROINC3}/RadiativeCooling.o ${HYDROINC}/Domain.o ${GIODIR}/cosmotools/algorithms/halofinder/Partition.o ${GIODIR}/cosmotools/algorithms/halofinder/dims.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lhealpix_cxx -std=c++17 | ||
|
||
|
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,55 @@ | ||
CC = ${HACC_MPI_CC} | ||
CXX = ${HACC_MPI_CXX} | ||
|
||
ENVLOC = frontier.kokkos_hip | ||
|
||
HPXDIR = /ccs/home/prlarsen/codes/Healpix_3.82 | ||
CFITSDIR = /ccs/home/prlarsen/codes/cfitsio-4.4.0/build | ||
GIODIR = /ccs/home/prlarsen/codes/HACC/frontier.kokkos_hip/mpi | ||
HACCDIR = /ccs/home/prlarsen/codes/HACC | ||
|
||
SCDIR = src | ||
|
||
HACCLIB = -lm -fopenmp | ||
|
||
HPXCINCDIR = -I${HPXDIR}/include | ||
HPXINCDIR = -I${HPXDIR}/include/healpix_cxx | ||
HPXLIBDIR = ${HPXDIR}/lib | ||
CFTLIBDIR = ${CFITSDIR}/lib | ||
|
||
GIOINCDIR = -I${HACCDIR}/submodules/genericio | ||
GIOLIBDIR = ${GIODIR}/lib | ||
HACCINCDIR = -I${HACCDIR}/cosmotools/algorithms/halofinder | ||
HACCINCDIR2 = -I${HACCDIR}/cosmotools/common | ||
HYDROINC = ${HACCDIR}/${ENVLOC}/mpi/nbody/common | ||
HYDROINC2 = -I${HACCDIR}/nbody/common | ||
HYDROINC3 = ${HACCDIR}/${ENVLOC}/mpi/cosmotools/algorithms/halofinder | ||
BLOSCDIR = -I${GIODIR}/genericio/thirdparty/blosc | ||
|
||
|
||
INCDIRS = ${GIOINCDIR} ${HPXINCDIR} ${HPXCINCDIR} ${BLOSCDIR} ${HACCINCDIR} ${HACCINCDIR2} ${HYDROINC2} -I${HYDROINC3} -I./inc/ | ||
LIBDIRS = -L${HPXLIBDIR} -L${GIOLIBDIR} -L${CFTLIBDIR} | ||
|
||
|
||
go_compile: ${SCDIR}/gravonly.cxx | ||
${CXX} -g -O3 -fopenmp -c ${INCDIRS} ${SCDIR}/gravonly.cxx ${SCDIR}/utils_gravonly.cxx ${SCDIR}/pix_funcs_gravonly.cxx ${SCDIR}/PLParticles.cxx -std=c++17 ${HACC_MPI_CXXFLAGS} | ||
|
||
go_link: ${SCDIR}/gravonly.cxx | ||
${CXX} -g -O3 -fopenmp -o dens gravonly.o utils_gravonly.o pix_funcs_gravonly.o PLParticles.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lhealpix_cxx -std=c++17 ${HACCLIB} | ||
|
||
|
||
|
||
main_compile: main.cxx | ||
${CXX} -c -fopenmp ${INCDIRS} ${SCDIR}/main.cxx utils.cxx pix_funcs.cxx PLParticles.cxx -std=c++11 | ||
|
||
main_link: main.cxx | ||
${CXX} -O3 -fopenmp -o dens main.o utils.o pix_funcs.o PLParticles.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lchealpix -lhealpix_cxx -std=c++11 | ||
|
||
|
||
hydro_compile: ${SCDIR}/hydro.cxx | ||
${CXX} -c -fopenmp ${INCDIRS} ${SCDIR}/hydro.cxx ${SCDIR}/utils.cxx ${SCDIR}/pix_funcs.cxx ${SCDIR}/PLParticles.cxx ${SCDIR}/PLHalos.cxx -std=c++17 | ||
|
||
hydro_link: ${SCDIR}/hydro.cxx | ||
${CXX} -O3 -fopenmp -o hydro_xray hydro.o utils.o pix_funcs.o PLParticles.o PLHalos.o ${HYDROINC3}/RadiativeCooling.o ${HYDROINC}/Domain.o ${GIODIR}/cosmotools/algorithms/halofinder/Partition.o ${GIODIR}/cosmotools/algorithms/halofinder/dims.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lchealpix -lhealpix_cxx -std=c++17 | ||
|
||
|
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,52 @@ | ||
CC = ${HACC_MPI_CC} | ||
CXX = ${HACC_MPI_CXX} | ||
|
||
#HPXDIR = /home/prlarsen/codes/healpix/Healpix_3.82_polaris | ||
HPXDIR = /global/homes/p/plarsen/plarsen_git/Healpix_3.82 | ||
#CFITSDIR = /home/prlarsen/usr/cfitsio-4.0.0/build | ||
CFITSDIR = /global/homes/p/plarsen/plarsen_git/cfitsio-4.4.0/build | ||
|
||
GIODIR = /global/homes/p/plarsen/plarsen_git/HACC/perlmutter.kokkos_cuda/mpi | ||
HACCDIR = /global/homes/p/plarsen/plarsen_git/HACC | ||
|
||
SCDIR = src | ||
|
||
#HPXDIR = /lustre/orion/hep114/scratch/prlarsen/Healpix_3.82 | ||
#CFITSDIR = /lustre/orion/hep114/scratch/prlarsen/cfitsio-4.2.0/build | ||
#GIODIR = /lustre/orion/hep114/scratch/prlarsen/HACC/frontier.cpu/mpi | ||
#HACCDIR = /lustre/orion/hep114/scratch/prlarsen/HACC | ||
|
||
HPXCINCDIR = -I${HPXDIR}/include | ||
HPXINCDIR = -I${HPXDIR}/include/healpix_cxx | ||
HPXLIBDIR = ${HPXDIR}/lib | ||
CFTLIBDIR = ${CFITSDIR}/lib | ||
|
||
GIOINCDIR = -I${HACCDIR}/submodules/genericio | ||
GIOLIBDIR = ${GIODIR}/lib | ||
HACCINCDIR = -I${HACCDIR}/cosmotools/algorithms/halofinder | ||
HACCINCDIR2 = -I${HACCDIR}/cosmotools/common | ||
HYDROINC = ${HACCDIR}/perlmutter.kokkos_cuda/mpi/nbody/common | ||
HYDROINC2 = -I${HACCDIR}/nbody/common | ||
HYDROINC3 = ${HACCDIR}/perlmutter.kokkos_cuda/mpi/cosmotools/algorithms/halofinder | ||
BLOSCDIR = -I${GIODIR}/genericio/thirdparty/blosc | ||
|
||
|
||
INCDIRS = ${GIOINCDIR} ${HPXINCDIR} ${HPXCINCDIR} ${BLOSCDIR} ${HACCINCDIR} ${HACCINCDIR2} ${HYDROINC2} -I${HYDROINC3} -I./inc/ | ||
LIBDIRS = -L${HPXLIBDIR} -L${GIOLIBDIR} -L${CFTLIBDIR} | ||
|
||
|
||
|
||
main_compile: main.cxx | ||
${CXX} -c -fopenmp ${INCDIRS} ${SCDIR}/main.cxx utils.cxx pix_funcs.cxx PLParticles.cxx -std=c++11 | ||
|
||
main_link: main.cxx | ||
${CXX} -O3 -fopenmp -o dens main.o utils.o pix_funcs.o PLParticles.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lchealpix -lhealpix_cxx -std=c++11 | ||
|
||
|
||
hydro_compile: ${SCDIR}/hydro.cxx | ||
${CXX} -c -fopenmp ${INCDIRS} ${SCDIR}/hydro.cxx ${SCDIR}/utils.cxx ${SCDIR}/pix_funcs.cxx ${SCDIR}/PLParticles.cxx ${SCDIR}/PLHalos.cxx -std=c++11 | ||
|
||
hydro_link: ${SCDIR}/hydro.cxx | ||
${CXX} -O3 -fopenmp -o hydro_xray hydro.o utils.o pix_funcs.o PLParticles.o PLHalos.o ${HYDROINC3}/RadiativeCooling.o ${HYDROINC}/Domain.o ${GIODIR}/cosmotools/algorithms/halofinder/Partition.o ${GIODIR}/cosmotools/algorithms/halofinder/dims.o ${INCDIRS} -L${GIOLIBDIR} -lGenericIOMPI -L${CFTLIBDIR} -lcfitsio -L${HPXLIBDIR} -lchealpix -lhealpix_cxx -std=c++11 | ||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
#SBATCH -A HEP142 | ||
#SBATCH -J calib_run | ||
#SBATCH -o %x-%j.out | ||
#SBATCH -t 02:00:00 | ||
#SBATCH -p batch | ||
##SBATCH -q debug | ||
#SBATCH -N 8 | ||
|
||
source bashrc.frontier.kokkos_hip | ||
export OMP_NUM_THREADS=7 | ||
|
||
srun -N8 -n64 -c7 --gpus-per-node=8 --gpu-bind=closest ./hacc_tpm params/indat.params -n |
Oops, something went wrong.