Skip to content

Commit

Permalink
update gpupunk and install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
FindHao committed Apr 20, 2023
1 parent 17bc406 commit 2edd5eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
3 changes: 1 addition & 2 deletions bin/gpupunk
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,12 @@ fi
# check if the previous command is successful
function check_status {
if [ $? -ne 0 ];then
echo "GPUPUNK-> $1 failed"
echo "GPUPUNK-> $1 failed when checking status."
exit -1
fi
}

if [ $GPUPUNK_CUBIN_FILTER -eq 1 ]; then
rm -rf ./cubins
LD_PRELOAD=${GPUPUNK_PATH}/cubin_filter/libcubin_filter.so $GPUPUNK_EXEC $GPUPUNK_ARGS &>>$GPUPUNK_REDIRECT 2>&1
check_status "cubin_filter"
fi
Expand Down
15 changes: 8 additions & 7 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CUDA_PATH=${CUDA_PATH:-/usr/local/cuda}
if [ ! -d $CUDA_PATH ]
then
echo "CUDA_PATH not exist"
exit 1
fi

echo "Your source code path is " $source_path
Expand Down Expand Up @@ -85,13 +86,13 @@ cd ${source_path}/drcctprof_clients
cp -r ./DrCCTProf/build ${install_path}/drcctprof
check_status "drcctprof install"

cd ${source_path}/cubin_filter
rm -rf ${source_path}/cubin_filter/build
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=${install_path}/cubin_filter
make -j 16
make install -j 4
check_status "cubin_filter install"
# cd ${source_path}/cubin_filter
# rm -rf ${source_path}/cubin_filter/build
# mkdir build && cd build
# cmake .. -DCMAKE_INSTALL_PREFIX=${install_path}/cubin_filter
# make -j 16
# make install -j 4
# check_status "cubin_filter install"

cd ${source_path}
# cp -rf ./bin ${install_path}/
Expand Down

0 comments on commit 2edd5eb

Please sign in to comment.