Question
I see the documentation in 02_Kernels.md which says:
You can use the DebugSymbols() method of Context.Builder to enable additional information about compiled kernels.
This includes local functions and consumed local and shared memory.
After enabling, you can get the information from a compiled kernel launcher delegate instance via:
// Get kernel information from a kernel launcher instance
var information = launcher.GetKernelInfo();
// Dump all information to the stdout stream
information.DumpToConsole();
I'm doing:
using var context = Context.Create(builder => builder.Default().DebugSymbols(DebugSymbolsMode.Kernel).EnableAlgorithms());
var far_launcher = kernel.CreateLauncherDelegate<Action<AcceleratorStream, KernelConfig, ArrayView, ArrayView, ArrayView, float>>()
var info = far_launcher.GetKernelInfo();
but info is set to null.
I've tried all values of the DebugSymbolsMode enumeration. What controls the availability of the kernel info object?
Environment
- ILGPU version: 1.5.3
- .NET version: NET 9
- Operating system: Windows 11, {NVIDIA GeForce RTX 5090 Laptop GPU [Type: Cuda, WarpSize: 32, MaxNumThreadsPerGroup: 1024, MemorySize: 25650855936]}
- Hardware (if GPU-related): [e.g., NVIDIA GeForce GTX 1080]
Additional context
No response
Question
I see the documentation in 02_Kernels.md which says:
You can use the
DebugSymbols()method ofContext.Builderto enable additional information about compiled kernels.This includes local functions and consumed local and shared memory.
After enabling, you can get the information from a compiled kernel launcher delegate instance via:
I'm doing:
using var context = Context.Create(builder => builder.Default().DebugSymbols(DebugSymbolsMode.Kernel).EnableAlgorithms());
var far_launcher = kernel.CreateLauncherDelegate<Action<AcceleratorStream, KernelConfig, ArrayView, ArrayView, ArrayView, float>>()
var info = far_launcher.GetKernelInfo();
but info is set to null.
I've tried all values of the DebugSymbolsMode enumeration. What controls the availability of the kernel info object?
Environment
Additional context
No response