Skip to content

Commit

Permalink
remove patch warning;update gputrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
FindHao committed Apr 21, 2023
1 parent 2ce0349 commit 3ffb6dd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
22 changes: 10 additions & 12 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,18 @@ 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}/
mkdir ${install_path}/bin
# @FindHao TODO: change to copy before final release
if [ -f ${install_path}/bin/gpupunk ];then
rm ${install_path}/bin/gpupunk
if [ -f ${install_path}/bin ];then
rm ${install_path}/bin/*
fi
ln -s ${source_path}/bin/gpupunk ${install_path}/bin/gpupunk
copy ${source_path}/bin/* ${install_path}/bin/*

5 changes: 3 additions & 2 deletions gpu-patch/src/gpu-patch.cu
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ static __device__ __forceinline__
// Read operation, old value can be on local memory, shared memory, or global memory
if (flags & GPU_PATCH_SHARED)
{
read_shared_memory(size, (uint32_t)address, buf);
// hidden type conversion, uintptr_t -> uint32
read_shared_memory(size, (uintptr_t)address, buf);
}
else if (flags & GPU_PATCH_LOCAL)
{
read_local_memory(size, (uint32_t)address, buf);
read_local_memory(size, (uintptr_t)address, buf);
}
else if (flags != SANITIZER_MEMORY_DEVICE_FLAG_FORCE_INT)
{
Expand Down
2 changes: 1 addition & 1 deletion gputrigger

0 comments on commit 3ffb6dd

Please sign in to comment.