Comments (4)
I believe the root cause of this is the #include <climits>
header being loaded from jitify's builtins and cached, and then, when #include "climits"
is encountered within libcu++, jitify uses the cached version instead of the new one.
The solution will be to distinguish between #include <foo>
and #include "foo"
in the header cache. However, it is further complicated by the fact that NVRTC does not support such a distinction. I think the only way around that will be to automatically patch #include "foo"
to #include </path/to/foo>
(if and only if /path/to/foo
exists).
Unfortunately this is easier said than done, which is why I haven't got to it yet.
In terms of workarounds, removing #include <limits>
and just using the libcu++ version should work, if that's doable in your code. There may be other workarounds too.
from jitify.
@benbarsdell this is the same issue I reported a while ago. Did you have a chance to think about how to fix this?
from jitify.
I'll see if I can take another look at this later this week.
from jitify.
@benbarsdell Hi, any updates on this? I'm reviewing rapidsai/cudf#11287 and would like to understand the issue / what solutions might be possible.
from jitify.
Related Issues (20)
- Is it possible to create program from cuBin or PTX? HOT 3
- [BUG] GetNumSupportedArchs GetSupportedArchs compile error HOT 2
- jitify2_preprocess require -lpthread in linkage stage for safety HOT 1
- [Help]How to include <cuda_fp16.h> in jitify? HOT 3
- (jitify2) Serialisation post-NVRTC HOT 3
- Jitify doesn't forward `-I` options to NVRTC. HOT 2
- CUDA 11 support? HOT 4
- Debugging NVRTC_ERROR_INVALID_OPTION Windows HOT 5
- #pragma HACK war fails on #pragma unroll x HOT 2
- Jitify should not print warnings to stdout by default HOT 2
- C++ header "functional" not supported? HOT 8
- Author email address(es) unavailable HOT 1
- GTC Talk link is dead HOT 2
- #include <limits> fails on Windows
- detail::path_base() doesn't handle Linux path separators on Windows HOT 1
- load_program() performance (with large include hierarchies) HOT 6
- Does jitify supports CUDA 11.x??? HOT 4
- Memory leak within nvrtcCompileProgram() HOT 2
- Possibility of cross-pollination/collaboration with cuda-api-wrappers?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jitify.