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

CUDA GDB is practically useless for traccc #710

Open
stephenswat opened this issue Sep 21, 2024 · 0 comments
Open

CUDA GDB is practically useless for traccc #710

stephenswat opened this issue Sep 21, 2024 · 0 comments
Labels
bug Something isn't working build This relates to the build system cuda Changes related to CUDA

Comments

@stephenswat
Copy link
Member

Extending the discussion in #708; cuda-gdb fails to produce meaningful output in traccc. Many symbols remain undemangled and stack traces are poor. Here is an example compilation command:

/mnt/ssd1/sswatman/.spack_install/var/spack/environments/traccc/.spack-env/view/bin/nvcc
    -forward-unknown-to-host-compiler
    -ccbin=/mnt/ssd1/sswatman/.spack_install/var/spack/environments/traccc/.spack-env/view/bin/clang++
    -DALGEBRA_PLUGINS_INCLUDE_ARRAY
    -DCOVFIE_QUIET
    -DDETRAY_ALGEBRA_ARRAY
    -DDETRAY_ALGEBRA_EIGEN
    -DDETRAY_ALGEBRA_VC
    -DDETRAY_CUSTOM_SCALARTYPE=float
    -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CUDA
    -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP
    -DTRACCC_CUSTOM_SCALARTYPE=float
    -DVECMEM_DEBUG_MSG_LVL=0
    -DVECMEM_HAVE_PMR_MEMORY_RESOURCE
    -DVECMEM_SOURCE_DIR_LENGTH=26
    -Dtraccc_cuda_EXPORTS
    [... a bunch of -I flags ...]
    --expt-relaxed-constexpr
    -g
    -G
    --keep
    -src-in-ptx
    -std=c++20
    "--generate-code=arch=compute_52,code=[compute_52,sm_52]" 
    -Xcompiler=-fPIC
    --expt-relaxed-constexpr
    -Xcudafe
    --diag_suppress=20012
    -MD
    -MT device/cuda/CMakeFiles/traccc_cuda.dir/src/finding/finding_algorithm.cu.o
    -MF device/cuda/CMakeFiles/traccc_cuda.dir/src/finding/finding_algorithm.cu.o.d
    -x cu
    -c /mnt/ssd1/sswatman/traccc/device/cuda/src/finding/finding_algorithm.cu
    -o device/cuda/CMakeFiles/traccc_cuda.dir/src/finding/finding_algorithm.cu.o

The -g and -G flags are added correctly. Attila suggested maybe adding -O0.

@stephenswat stephenswat added bug Something isn't working build This relates to the build system cuda Changes related to CUDA labels Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build This relates to the build system cuda Changes related to CUDA
Projects
None yet
Development

No branches or pull requests

1 participant