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

How to debug a context? (cuda.cpp, d3d12compute.cpp, ...) #8203

Open
soufianekhiat opened this issue Apr 19, 2024 · 0 comments
Open

How to debug a context? (cuda.cpp, d3d12compute.cpp, ...) #8203

soufianekhiat opened this issue Apr 19, 2024 · 0 comments

Comments

@soufianekhiat
Copy link

As a module are internaly generated:

initmod.windows_d3d12compute_x86_64.ll: \
  D:\git\Halide\src\runtime\windows_d3d12compute_x86.cpp \
  D:\git\Halide\src\runtime\d3d12compute.cpp \
  D:\git\Halide\src\runtime\HalideRuntimeD3D12Compute.h \
  D:\git\Halide\src\runtime\HalideRuntime.h \
  D:\git\Halide\src\runtime\runtime_internal.h \
  D:\git\Halide\src\runtime\device_buffer_utils.h \
  D:\git\Halide\src\runtime\device_interface.h \
  D:\git\Halide\src\runtime\printer.h \
  D:\git\Halide\src\runtime\gpu_context_common.h \
  D:\git\Halide\src\runtime\scoped_mutex_lock.h \
  D:\git\Halide\src\runtime\mini_d3d12.h \
  D:\git\Halide\src\runtime\dxcapi.h \
  C:\Program\ Files\Microsoft\ Visual\ Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\vector \
  C:\Program\ Files\Microsoft\ Visual\ Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\yvals_core.h \
  D:\git\Halide\src\runtime\hashmap.h

Imported with a llvm module halide_internal_initmod_windows_d3d12compute_x86_32.
But how can we debug, breakpoint inside:
halide_default_cuda_acquire_context
or
d3d12_allocation_cache_get_buffer
Do we have a different mode for developer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant