Skip to content

Commit ce12e67

Browse files
gnurizenclaude
andcommitted
Fix test.sh to work with CMake build system
Updated paths and commands: - Build directory: build/local -> build-local - CMake commands: use build-local consistently - Library path: pass build-local/lib/libparcagpucupti.so to test - LD_LIBRARY_PATH: point to build-local/lib for mocks Removed references to old Zig build (zig-out) and multi-version build structure (build/$CUDA_MAJOR/$ARCH). Test now works with simplified CMake-based build. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 58f77cc commit ce12e67

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ done
2222

2323
echo ""
2424
echo "=== Building test infrastructure with CMake ==="
25-
mkdir -p build/local
26-
cd build/local
27-
cmake ../..
25+
mkdir -p build-local
26+
cd build-local
27+
cmake ..
2828
make -j$(nproc)
29-
cd ../..
29+
cd ..
3030

3131
# Start bpftrace if requested
3232
if [ "$USE_BPFTRACE" -eq 1 ]; then
@@ -53,10 +53,10 @@ echo ""
5353
echo "=== Running test program ==="
5454
# Set LD_LIBRARY_PATH so the test can find libcupti.so and libparcagpucupti.so at runtime
5555
# Set PARCAGPU_DEBUG to enable debug output
56-
export LD_LIBRARY_PATH="$(pwd)/build/local/lib:$LD_LIBRARY_PATH"
56+
export LD_LIBRARY_PATH="$(pwd)/build-local/lib:$LD_LIBRARY_PATH"
5757
export PARCAGPU_DEBUG=1
58-
# Use the CMake-built library with real CUPTI
59-
zig-out/bin/test_cupti_prof build/$CUDA_MAJOR/$ARCH/libparcagpucupti.so "$@"
58+
# Run the test program with path to library
59+
./build-local/bin/test_cupti_prof build-local/lib/libparcagpucupti.so "$@"
6060

6161
# If bpftrace was started, stop it and show results
6262
if [ "$USE_BPFTRACE" -eq 1 ]; then

0 commit comments

Comments
 (0)