Skip to content

Commit

Permalink
Cleanup of code that is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Aug 22, 2024
1 parent 7eacbf4 commit c6056ab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,10 @@ echo "Detected available memory: ${cgroup_mem_mib} MiB"

# echo "Replacing detected system information in template ReFrame config file..."
cp ${RFM_CONFIG_FILE_TEMPLATE} ${RFM_CONFIG_FILES}
# sed -i "s/__NUM_CPUS__/${cpu_count}/g" $RFM_CONFIG_FILES
# sed -i "s/__NUM_SOCKETS__/${socket_count}/g" $RFM_CONFIG_FILES
# sed -i "s/__NUM_CPUS_PER_CORE__/${threads_per_core}/g" $RFM_CONFIG_FILES
# sed -i "s/__NUM_CPUS_PER_SOCKET__/${cores_per_socket}/g" $RFM_CONFIG_FILES
echo "Replacing memory limit in the ReFrame config file with the detected CGROUP memory limit: ${cgroup_mem_mib} MiB"
sed -i "s/__MEM_PER_NODE__/${cgroup_mem_mib}/g" $RFM_CONFIG_FILES
echo "Replacing partition name in the template ReFrame config file, to trigger CPU autodetection for this job"
# cp ${RFM_CONFIG_FILE_TEMPLATE} ${RFM_CONFIG_FILES}
RFM_PARTITION="${SLURM_JOB_PARTITION}"
echo "Replacing partition name in the template ReFrame config file: ${RFM_PARTITION}"
sed -i "s/__RFM_PARTITION__/${RFM_PARTITION}/g" $RFM_CONFIG_FILES

# Make debugging easier by printing the final config file:
Expand Down

0 comments on commit c6056ab

Please sign in to comment.