Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] ORC debug #17357

Draft
wants to merge 21 commits into
base: branch-25.02
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
  • Loading branch information
kingcrimsontianyu committed Dec 19, 2024
commit 08710ad9984ca77ba92748188cf960671b3c3f7f
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -811,7 +811,7 @@ set_property(
src/io/orc/stripe_init.cu
src/io/orc/writer_impl.cu
APPEND
PROPERTY COMPILE_OPTIONS "-g;-G;-E"
PROPERTY COMPILE_OPTIONS "-g;-G"
)

set_property(
2 changes: 1 addition & 1 deletion cpp/examples/build.sh
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
set -euo pipefail

# Parallelism control
PARALLEL_LEVEL=${PARALLEL_LEVEL:-8}
PARALLEL_LEVEL=${PARALLEL_LEVEL:-16}
# Installation disabled by default
INSTALL_EXAMPLES=false

8 changes: 1 addition & 7 deletions cpp/examples/fetch_dependencies.cmake
Original file line number Diff line number Diff line change
@@ -25,11 +25,5 @@ include(${CMAKE_BINARY_DIR}/cmake/get_cpm.cmake)
# find or build it via CPM
CPMFindPackage(
NAME cudf
FIND_PACKAGE_ARGUMENTS "PATHS ${cudf_ROOT} ${cudf_ROOT}/latest" GIT_REPOSITORY
https://github.com/kingcrimsontianyu/cudf
GIT_TAG "orc-debug"
GIT_SHALLOW
TRUE
SOURCE_SUBDIR
cpp
FIND_PACKAGE_ARGUMENTS "REQUIRED PATHS ${cudf_ROOT}/latest"
)
3 changes: 1 addition & 2 deletions cpp/examples/orc_io/debug/breakpoints.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
break /home/coder/cudf/cpp/examples/orc_io/build/_deps/cudf-src/cpp/src/io/orc/stripe_data.cu:1891
break /home/coder/cudf/cpp/examples/orc_io/build/_deps/cudf-src/cpp/src/io/orc/stripe_data.cu:1384
break gpuDecodeOrcColumnData

15 changes: 15 additions & 0 deletions cpp/examples/orc_io/debug/rebuild_example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

pushd $(pwd)

cd ~
clean-all
configure-cudf-cpp -DCMAKE_BUILD_TYPE=Debug -j 16 -DCMAKE_CUDA_ARCHITECTURES=86

cd ~/cudf/cpp/build/pip/cuda-12.5/debug
sed -i 's|LAUNCHER = /usr/bin/sccache|LAUNCHER =|g' build.ninja
ninja -j16 cudf

cd ~/cudf/cpp/examples
./build.sh
popd