[CUDA] Fix segfault on exit (#2424)

* fix cuda segfault on exit

* comment
This commit is contained in:
Awni Hannun
2025-07-27 08:08:13 -07:00
committed by GitHub
parent 4ad53414dd
commit b9e88fb976
3 changed files with 13 additions and 2 deletions

View File

@@ -99,6 +99,8 @@ class JitModule {
std::unordered_map<std::string, CUfunction> kernels_;
};
std::unordered_map<std::string, JitModule>& get_jit_module_cache();
JitModule& get_jit_module(
const mlx::core::Device& device,
const std::string& name,