Skip to content

Commit

Permalink
minor changes in depends
Browse files Browse the repository at this point in the history
  • Loading branch information
haykh committed Oct 16, 2024
1 parent 1f84416 commit d5c6c92
Showing 1 changed file with 13 additions and 29 deletions.
42 changes: 13 additions & 29 deletions docs/getting-started/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,7 @@ unset CURRENT_DIR`);
if (gpuarch !== "") {
suffix += " @ " + gpuarch;
}
for (const mod of modules) {
if (prereqs === "") {
prereqs = "\nprereq ";
}
prereqs += ` ${mod}`;
}
prereqs = modules.map((m) => "prereq " + m).join('\n');
for (const flag of cflags) {
if (!flag.startsWith("CMAKE")) {
flags.push(`setenv ${flag.split('=')[0]}` + ' ' + flag.split('=')[1]);
Expand All @@ -122,7 +117,8 @@ proc ModulesHelp { } {
module-whatis "Sets up ${suffix}"
conflict kokkos${prereqs}
conflict kokkos
${prereqs}
set basedir ${kokkos_install}
prepend-path PATH $basedir/bin
Expand Down Expand Up @@ -268,12 +264,7 @@ unset CURRENT_DIR`);
if (use.mpi || use.mpisupport) {
suffix = "ADIOS2 with MPI support";
}
for (const mod of modules) {
if (prereqs === "") {
prereqs = "\nprereq ";
}
prereqs += ` ${mod}`;
}
prereqs = modules.map((m) => "prereq " + m).join('\n');
for (const flag of cflags) {
if (flag.includes("MPI") || flag.includes("HDF5")) {
flags.push(`setenv ${flag.split('=')[0]}` + ' ' + flag.split('=')[1]);
Expand All @@ -291,7 +282,8 @@ puts stderr "\\t${suffix}\\n"
module-whatis "Sets up ${suffix}"
conflict adios2${prereqs}
conflict adios2
${prereqs}
set basedir ${adios2_install}
prepend-path PATH $basedir/bin
Expand Down Expand Up @@ -402,12 +394,7 @@ unset CURRENT_DIR`);
if (use.mpi || use.mpisupport) {
suffix = "HDF5 with MPI support";
}
for (const mod of modules) {
if (prereqs === "") {
prereqs = "\nprereq ";
}
prereqs += ` ${mod}`;
}
prereqs = modules.map((m) => "prereq " + m).join('\n');
modfile = (`#%Module1.0######################################################################
##
## ${suffix} modulefile
Expand All @@ -419,7 +406,8 @@ proc ModulesHelp { } {
module-whatis "Sets up ${suffix}"
conflict hdf5 phdf5 hdf5-mpi hdf5-parallel${prereqs}
conflict hdf5 phdf5 hdf5-mpi hdf5-parallel
${prereqs}
set basedir ${hdf5_install}
prepend-path PATH $basedir/bin
Expand Down Expand Up @@ -516,12 +504,7 @@ unset CURRENT_DIR`);
if (use.gpusupport) {
suffix = "MPI with GPU support";
}
for (const mod of modules) {
if (prereqs === "") {
prereqs = "\nprereq ";
}
prereqs += ` ${mod}`;
}
prereqs = modules.map((m) => "prereq " + m).join('\n');
modfile = (`#%Module1.0######################################################################
##
## ${suffix} modulefile
Expand All @@ -533,7 +516,8 @@ proc ModulesHelp { } {
module-whatis "Sets up ${suffix}"
conflict mpi ompi openmpi mpich intel-mpi${prereqs}
conflict mpi ompi openmpi mpich intel-mpi open-mpi
${prereqs}
set basedir ${mpi_install}
prepend-path PATH $basedir/bin
Expand Down Expand Up @@ -932,4 +916,4 @@ document.addEventListener('DOMContentLoaded', () => {
lib_changed(name);
});
});
});
});

0 comments on commit d5c6c92

Please sign in to comment.