From 287fe0aa17ec1ac5bdd595ca6e89aa97464bcac7 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Tue, 18 Feb 2025 10:29:07 -0500 Subject: A bunch of maintenance fixes, the largest of which is getting the PTX simulation to work with CUDA 12. (#95) * Fixing the formatter to always use a consistent format and running it on the codebase * Update linux-so-version.txt * Update Makefile * A couple of unnecessary files that are lingering around * Support CUDA 12 * Getting the PTX simulations to work with CUDA 12. The issue is that ptxas added more information (number of barriers and compile time). We have to parse these or lexx/yacc fail. * Update ptxinfo.l debug MACRO was ineffective * Update gpgpusim_check.cmake Update to make the CUDA version print a warning, not an error and updating the print to be more reflective of what the actual problem is. --- format-code.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'format-code.sh') diff --git a/format-code.sh b/format-code.sh index acd33ab..b83510d 100755 --- a/format-code.sh +++ b/format-code.sh @@ -1,13 +1,13 @@ # This bash script formats GPGPU-Sim using clang-format THIS_DIR="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )" echo "Running clang-format on $THIS_DIR" -clang-format -i ${THIS_DIR}/libcuda/*.h -clang-format -i ${THIS_DIR}/libcuda/*.cc -clang-format -i ${THIS_DIR}/src/*.h -clang-format -i ${THIS_DIR}/src/*.cc -clang-format -i ${THIS_DIR}/src/gpgpu-sim/*.h -clang-format -i ${THIS_DIR}/src/gpgpu-sim/*.cc -clang-format -i ${THIS_DIR}/src/cuda-sim/*.h -clang-format -i ${THIS_DIR}/src/cuda-sim/*.cc -clang-format -i ${THIS_DIR}/src/accelwattch/*.h -clang-format -i ${THIS_DIR}/src/accelwattch/*.cc \ No newline at end of file +clang-format -i ${THIS_DIR}/libcuda/*.h --style=file:${THIS_DIR}/.clang-format +clang-format -i ${THIS_DIR}/libcuda/*.cc --style=file:${THIS_DIR}/.clang-format +clang-format -i ${THIS_DIR}/src/*.h --style=file:${THIS_DIR}/.clang-format +clang-format -i ${THIS_DIR}/src/*.cc --style=file:${THIS_DIR}/.clang-format +clang-format -i ${THIS_DIR}/src/gpgpu-sim/*.h --style=file:${THIS_DIR}/.clang-format +clang-format -i ${THIS_DIR}/src/gpgpu-sim/*.cc --style=file:${THIS_DIR}/.clang-format +clang-format -i ${THIS_DIR}/src/cuda-sim/*.h --style=file:${THIS_DIR}/.clang-format +clang-format -i ${THIS_DIR}/src/cuda-sim/*.cc --style=file:${THIS_DIR}/.clang-format +clang-format -i ${THIS_DIR}/src/accelwattch/*.h --style=file:${THIS_DIR}/.clang-format +clang-format -i ${THIS_DIR}/src/accelwattch/*.cc --style=file:${THIS_DIR}/.clang-format -- cgit v1.3