-
Notifications
You must be signed in to change notification settings - Fork 364
Fix missing unistd.h on Windows #152
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
Changes from all commits
53c3430
1a00287
c98832d
6150abe
4ade7eb
6346b1c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,13 @@ config_setting( | |
], | ||
) | ||
|
||
config_setting( | ||
name = "windows", | ||
constraint_values = [ | ||
"@platforms//os:windows", | ||
], | ||
) | ||
|
||
cc_library( | ||
name = "cudnn_headers", | ||
hdrs = ["include/cudnn.h"] + glob(["include/cudnn+.h"]), | ||
|
@@ -19,6 +26,7 @@ cc_import( | |
name = "cudnn_lib", | ||
shared_library = select({ | ||
":aarch64_linux": "lib/aarch64-linux-gnu/libcudnn.so", | ||
":windows": glob(["bin/cudnn64_*.dll"])[0], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is kind of odd, is there a reason you chose glob here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to note, the glob failed, I ended up just putting the 7 in the path and removing the glob There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How do we support cudnn8? I'm not good with bazel and couldn't figure out how to do a wildcard without a glob. Then a glob returns a list so I needed to get the first value. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I installed cudnn and tensorrt to a folder and specified it in WORKSPACE. I'm more of a Linux developer but need this working on Windows if we are to use it at all. Not sure what's going on with the stream operator there. From the error, it looks like it doesn't like:
Maybe a MSVC issue (if that's the compiler you are using). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can look into if there is another way to get the wildcard working. Hmm, I can look into the logging issue more, you didn't hit it right? What version of MSVC did you use? Did you add any additional flags or anything (like I noticed MSVC doesnt handle default flags we have like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @narendasan Any update with this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like something about the particular use of a specialized logger in conversion.cpp that is causing the issue, If I switch to the generic logger I can compile the library and successfully start programs using the core library such as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean for the globbing issue. Is this related to the bazel version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No I think it may have been a path error on my part i think. It works now. |
||
"//conditions:default": "lib/x86_64-linux-gnu/libcudnn.so", | ||
}), | ||
visibility = ["//visibility:private"], | ||
|
Uh oh!
There was an error while loading. Please reload this page.