You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cuda-bindings: handle CUDA header discovery errors
Report missing or unreadable CUDA headers directly from the build script and
discover CUDA headers and libraries in both the standard toolkit layout and
target-specific layouts such as targets/x86_64-linux and targets/sbsa-linux.
Signed-off-by: yagna-1 <yagna-1@users.noreply.github.com>
let cuda_h = Path::new(&toolkit).join("include/cuda.h");
35
+
let include_paths = collect_include_paths(&toolkit);
36
+
let cuda_h = include_paths
37
+
.iter()
38
+
.map(|include| include.join("cuda.h"))
39
+
.find(|path| path.is_file())
40
+
.ok_or_else(|| {
41
+
format!(
42
+
"cuda-bindings: could not find cuda.h under {}. Set CUDA_TOOLKIT_PATH or CUDA_HOME to a CUDA Toolkit install that contains include/cuda.h or targets/x86_64-linux/include/cuda.h.",
0 commit comments