Open zetanumbers opened 2 years ago
Have you tried just running it again? Sometimes it yields spurious segfaults i haven't quite been able to track down. Other than that, building llvm with debug assertions and using that will yield more info
I've used prebuilt release from https://releases.llvm.org/ . I guess i should build it myself now.
I have built llvm 7.1.0 from source with -DLLVM_ENABLE_ASSERTIONS=On
I have installed cuda version 11.4.4 as the last cuda version that bundles with 470 version of nvidida driver, that supports nvidia gtx 780. Maybe i have too old of a video card? In that case i think it should be mentioned in the getting started chapter.
seems i messed something up when adding warp matches, the intrinsics seem mistyped, im currently away from my pc but ill check it out ASAP
I have the same problem. I used prebuilt LLVM (if this can help). I looked deeper in the functions called and in my case the problem is given by the function crates/cuda_builder/src/invoke_rustc
, which stops the building execution. Try adding a println!("cargo:warning=Anything");
after it and tell me if you have the same problem
$LLVM_CONFIG --version
:7.1.0
`cargo -vV`
``` cargo 1.58.0-nightly (294967c53 2021-11-29) release: 1.58.0 commit-hash: 294967c53f0c70d598fc54ca189313c86c576ea7 commit-date: 2021-11-29 host: x86_64-unknown-linux-gnu libgit2: 1.3.0 (sys:0.13.23 vendored) libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1l) os: Pop!_OS 21.10 (impish) [64-bit] ````cargo run -p add`
``` /home/zeta/repos/Rust-CUDA〉cargo clean /home/zeta/repos/Rust-CUDA〉cargo run -p add Compiling libc v0.2.119 Compiling autocfg v1.1.0 Compiling pkg-config v0.3.24 Compiling proc-macro2 v1.0.36 Compiling unicode-xid v0.2.2 Compiling syn v1.0.86 Compiling glob v0.3.0 Compiling cfg-if v1.0.0 Compiling lazy_static v1.4.0 Compiling libm v0.2.2 Compiling regex-syntax v0.6.25 Compiling semver-parser v0.7.0 Compiling semver v1.0.6 Compiling curl v0.4.42 Compiling log v0.4.14 Compiling openssl-probe v0.1.5 Compiling serde_derive v1.0.136 Compiling serde v1.0.136 Compiling once_cell v1.10.0 Compiling pin-project-lite v0.2.8 Compiling serde_json v1.0.79 Compiling smallvec v1.8.0 Compiling bitflags v1.3.2 Compiling ansi_term v0.12.1 Compiling itoa v1.0.1 Compiling rustc-demangle v0.1.21 Compiling ryu v1.0.9 Compiling static_assertions v1.1.0 Compiling mint v0.5.9 Compiling bytemuck v1.8.0 Compiling nanorand v0.6.1 Compiling num-traits v0.2.14 Compiling num-integer v0.1.44 Compiling find_cuda_helper v0.2.0 (/home/zeta/repos/Rust-CUDA/crates/find_cuda_helper) Compiling tracing-core v0.1.23 Compiling sharded-slab v0.1.4 Compiling semver v0.6.0 Compiling thread_local v1.1.4 Compiling regex-automata v0.1.10 Compiling regex v1.5.5 Compiling nvvm v0.1.1 (/home/zeta/repos/Rust-CUDA/crates/nvvm) Compiling cust_raw v0.11.3 (/home/zeta/repos/Rust-CUDA/crates/cust_raw) Compiling cust v0.3.2 (/home/zeta/repos/Rust-CUDA/crates/cust) Compiling build-helper v0.1.1 Compiling quote v1.0.15 Compiling jobserver v0.1.24 Compiling filetime v0.2.15 Compiling socket2 v0.4.4 Compiling xattr v0.2.2 Compiling matchers v0.1.0 Compiling tracing-log v0.1.2 Compiling rustc_version v0.4.0 Compiling cc v1.0.73 Compiling tar v0.4.38 Compiling vek v0.15.6 Compiling approx v0.4.0 Compiling glam v0.20.2 Compiling openssl-sys v0.9.72 Compiling libz-sys v1.1.5 Compiling lzma-sys v0.1.17 Compiling curl-sys v0.4.52+curl-7.81.0 Compiling xz2 v0.1.6 Compiling xz v0.1.0 Compiling tracing-attributes v0.1.20 Compiling rustc_codegen_nvvm_macros v0.1.0 (/home/zeta/repos/Rust-CUDA/crates/rustc_codegen_nvvm_macros) Compiling cust_derive v0.2.0 (/home/zeta/repos/Rust-CUDA/crates/cust_derive) Compiling cust_core v0.1.1 (/home/zeta/repos/Rust-CUDA/crates/cust_core) Compiling tracing v0.1.32 Compiling tracing-subscriber v0.3.9 Compiling rustc_codegen_nvvm v0.3.0 (/home/zeta/repos/Rust-CUDA/crates/rustc_codegen_nvvm) warning: In file included from /home/zeta/llvm-7.1.0/include/llvm/CodeGen/TargetSubtargetInfo.h:22, warning: from rustc_llvm_wrapper/PassWrapper.cpp:29: warning: /home/zeta/llvm-7.1.0/include/llvm/CodeGen/SchedulerRegistry.h: In constructor ‘llvm::RegisterScheduler::RegisterScheduler(const char*, const char*, llvm::RegisterScheduler::FunctionPassCtor)’: warning: /home/zeta/llvm-7.1.0/include/llvm/CodeGen/SchedulerRegistry.h:40:35: warning: cast between incompatible function types from ‘llvm::RegisterScheduler::FunctionPassCtor’ {aka ‘llvm::ScheduleDAGSDNodes* (*)(llvm::SelectionDAGISel*, llvm::CodeGenOpt::Level)’} to ‘llvm::MachinePassCtor’ {aka ‘void* (*)()’} [-Wcast-function-type] warning: 40 | : MachinePassRegistryNode(N, D, (MachinePassCtor)C) warning: | ^~~~~~~~~~~~~~~~~~ warning: In file included from rustc_llvm_wrapper/rustllvm.h:15, warning: from rustc_llvm_wrapper/RustWrapper.cpp:11: warning: /home/zeta/llvm-7.1.0/include/llvm/ADT/ArrayRef.h: In instantiation of ‘llvm::ArrayRef