Skip to content

Commit

Permalink
remove -DBoost and BASH_FUNC_Module
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufo81 committed Feb 21, 2025
1 parent 044444b commit 046a3d5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 21 deletions.
7 changes: 1 addition & 6 deletions script/hemera_scripts/run_cpu_seq_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ initialize_modules() {
echo "Error: Module system initialization script not found."
exit 1
fi

# Define the 'module' function explicitly (if needed)
BASH_FUNC_module "() { eval \`$LMOD_CMD bash \"\$@\"\` && eval \`${LMOD_SETTARG_CMD:-:} -s sh\`"
export -f module


echo "Module system initialized successfully."
}

Expand Down Expand Up @@ -91,7 +87,6 @@ build_cpu_serial() {

echo "Configuring for preset: $preset"
cmake --preset "$preset" \
-DBoost_INCLUDE_DIR="$(spack location -i /u3oct6d)/include" \
-Dalpaka_BUILD_BENCHMARKS=ON \
-DCMAKE_BUILD_TYPE=RELEASE \
$extra_flags
Expand Down
5 changes: 0 additions & 5 deletions script/hemera_scripts/run_gpu_cuda_nvcc_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ initialize_modules() {
exit 1
fi

# Ensure the BASH_FUNC_module function is defined (from env output)
BASH_FUNC_module "() { eval \`$LMOD_CMD bash \"\$@\"\` && eval \`${LMOD_SETTARG_CMD:-:} -s sh\`"
export -f module

echo "Module system initialized successfully."
}

Expand Down Expand Up @@ -101,7 +97,6 @@ build_gpu_cuda_nvcc() {

echo "Configuring for preset: $preset"
cmake --preset "$preset" \
-DBoost_INCLUDE_DIR="$(spack location -i /u3oct6d)/include" \
-Dalpaka_BUILD_BENCHMARKS=ON \
-DCMAKE_BUILD_TYPE=RELEASE \
$extra_flags
Expand Down
5 changes: 0 additions & 5 deletions script/hemera_scripts/run_omp2_blocks_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ initialize_modules() {
exit 1
fi

# Define the 'module' function explicitly (if needed)
BASH_FUNC_module "() { eval \`$LMOD_CMD bash \"\$@\"\` && eval \`${LMOD_SETTARG_CMD:-:} -s sh\`"
export -f module

echo "Module system initialized successfully."
}

Expand Down Expand Up @@ -94,7 +90,6 @@ build_cpu_omp2b() {

echo "Configuring for preset: $preset"
cmake --preset "$preset" \
-DBoost_INCLUDE_DIR="$(spack location -i /u3oct6d)/include" \
-Dalpaka_BUILD_BENCHMARKS=ON \
-DCMAKE_BUILD_TYPE=RELEASE \
$extra_flags
Expand Down
5 changes: 0 additions & 5 deletions script/hemera_scripts/run_omp2_threads_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ initialize_modules() {
exit 1
fi

# Define the 'module' function explicitly (if needed)
BASH_FUNC_module "() { eval \`$LMOD_CMD bash \"\$@\"\` && eval \`${LMOD_SETTARG_CMD:-:} -s sh\`"
export -f module

echo "Module system initialized successfully."
}

Expand Down Expand Up @@ -94,7 +90,6 @@ build_cpu_omp2t() {

echo "Configuring for preset: $preset"
cmake --preset "$preset" \
-DBoost_INCLUDE_DIR="$(spack location -i /u3oct6d)/include" \
-Dalpaka_BUILD_BENCHMARKS=ON \
-DCMAKE_BUILD_TYPE=RELEASE \
$extra_flags
Expand Down

0 comments on commit 046a3d5

Please sign in to comment.