-
Notifications
You must be signed in to change notification settings - Fork 917
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
[BUG] JIT cache size is set to uint64 max #9362
Comments
This issue has been labeled |
This issue has been labeled |
…0317) In file `jit/cache.cpp`, a program cache always internally reserves a `std::unordered_map` using a size set by an environment variable `LIBCUDF_KERNEL_CACHE_LIMIT_PER_PROCESS`. If that environment variable does not exist, a default value (`std::numeric_limit<size_t>::max`) is used. Such default value is huge, leading to allocating a huge (impossible) size of memory chunk that crashes the system. This PR changes that default value from `std::numeric_limit<size_t>::max` to `1024^2`. This is essentially a reverse of the PR #10312 but set the default value to `1024` instead of `100`. Note that `1024^2` is just some random number, not based on any specific calculation. Closes #10312 and closes #9362. Authors: - Nghia Truong (https://github.com/ttnghia) Approvers: - Mark Harris (https://github.com/harrism) - Karthikeyan (https://github.com/karthikeyann) URL: #10317
The JIT cache size is customizable with these two env variables which have the default value UINT64_MAX
cudf/cpp/src/jit/cache.cpp
Lines 126 to 129 in c2c67de
These values are used in Jitify to allocate a map to store cached kernels.
https://github.com/rapidsai/jitify/blob/acef3fe7994d15ae0df70ef312f2c42547891b85/jitify2.hpp#L5451
In the default case, these values cause the resize to throw an
std::bad_alloc
on certain systems.The text was updated successfully, but these errors were encountered: