Skip to content

Commit

Permalink
adding a make clean before building datagpu driver
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Jul 15, 2024
1 parent 27b23c4 commit 3c48c8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data_gpu/driver/comp_and_load_drivers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ fi

# Go to nvidia path and build Nvidia driver
cd "$RET_DIR" || { echo "Error: Failed to change directory to $RET_DIR"; exit 1; }
# Clean previous builds
make clean
# Build datagpu driver
make CC=$CC NVIDIA_DRIVERS=$NVIDIA_PATH
/usr/sbin/insmod $RET_DIR/datagpu.ko || { echo "Error: Failed to insert datagpu.ko."; exit 1; }

0 comments on commit 3c48c8c

Please sign in to comment.