ZLUDA icon indicating copy to clipboard operation
ZLUDA copied to clipboard

build failing

Open HinaHyugaHime opened this issue 11 months ago • 7 comments

   Compiling zluda_dnn v0.0.0 (/home/hina/zluda/zluda_dnn)
   Compiling zluda_ccl v0.0.0 (/home/hina/zluda/zluda_ccl)
warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:248:5
    |
248 |     drop(hipFree(x));
    |     ^^^^^----------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result
    = note: `#[warn(dropping_copy_types)]` on by default

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:249:5
    |
249 |     drop(hipFree(w));
    |     ^^^^^----------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:250:5
    |
250 |     drop(hipFree(y));
    |     ^^^^^----------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:251:5
    |
251 |     drop(hipFree(workspace));
    |     ^^^^^------------------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:388:5
    |
388 |     drop(hipFree(x));
    |     ^^^^^----------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:389:5
    |
389 |     drop(hipFree(w));
    |     ^^^^^----------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:390:5
    |
390 |     drop(hipFree(y));
    |     ^^^^^----------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:391:5
    |
391 |     drop(hipFree(workspace));
    |     ^^^^^------------------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:620:5
    |
620 |     drop(hipFree(workspace));
    |     ^^^^^------------------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:951:5
    |
951 |     drop(hipFree(dy));
    |     ^^^^^-----------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:952:5
    |
952 |     drop(hipFree(w));
    |     ^^^^^----------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:953:5
    |
953 |     drop(hipFree(dx));
    |     ^^^^^-----------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing
   --> zluda_dnn/src/lib.rs:954:5
    |
954 |     drop(hipFree(work_space));
    |     ^^^^^-------------------^
    |          |
    |          argument has type `hip_runtime_sys::hipError_t`
    |
    = note: use `let _ = ...` to ignore the expression or result

warning: `zluda_dnn` (lib) generated 13 warnings
   Compiling ptx v0.0.0 (/home/hina/zluda/ptx)
   Compiling dynasmrt v1.2.3
   Compiling git2 v0.16.1
   Compiling zluda v0.0.0 (/home/hina/zluda/zluda)
   Compiling rusqlite v0.28.0
   Compiling hip_common v0.0.0 (/home/hina/zluda/hip_common)
   Compiling zluda_dark_api v0.0.0 (/home/hina/zluda/zluda_dark_api)
   Compiling comgr v0.0.0 (/home/hina/zluda/comgr)
   Compiling zluda_blas v0.0.0 (/home/hina/zluda/zluda_blas)
   Compiling zluda_fft v0.0.0 (/home/hina/zluda/zluda_fft)
   Compiling zluda_sparse v0.0.0 (/home/hina/zluda/zluda_sparse)
   Compiling zluda_blaslt v0.0.0 (/home/hina/zluda/zluda_blaslt)
warning: crate `cublasLt` should have a snake case name
  |
  = help: convert the identifier to snake case: `cublas_lt`
  = note: `#[warn(non_snake_case)]` on by default

error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/lib64/rustlib/x86_64-unknown-linux-gnu/bin:$PATH:/opt/rocm/llvm/bin:/opt/rocm/opencl/bin:/opt/rocm/hip/bin:/opt/rocm/hcc/bin:/opt/rocm/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" VSLANG="1033" "cc" "-Wl,--version-script=/tmp/rustc6WLB8F/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustc6WLB8F/symbols.o" "/home/hina/zluda/target/release/deps/cublasLt.cublasLt.b0b334e1547ae008-cgu.0.rcgu.o" "/home/hina/zluda/target/release/deps/cublasLt.10kfs5k11m7ninnj.rcgu.o" "-Wl,--as-needed" "-L" "/home/hina/zluda/target/release/deps" "-L" "/opt/rocm/lib/" "-L" "/home/hina/zluda/target/release/build/libsqlite3-sys-6b53c40cbe5ae104/out" "-L" "/opt/rocm/lib/" "-L" "/home/hina/zluda/target/release/build/lz4-sys-d7d82446aef322c1/out" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/hina/zluda/target/release/deps/libzluda_dark_api-7edbba1f267b657d.rlib" "/home/hina/zluda/target/release/deps/libthread_id-59f55bc158dfef12.rlib" "/home/hina/zluda/target/release/deps/liblz4_sys-d2ae80161fa217a3.rlib" "/home/hina/zluda/target/release/deps/liblibc-d1988c0fbaf2d913.rlib" "/home/hina/zluda/target/release/deps/libbitflags-855a22ea97029ee6.rlib" "/home/hina/zluda/target/release/deps/libbit_vec-7f4c27a8216c9ba6.rlib" "/home/hina/zluda/target/release/deps/libhip_common-61dfbaeec3c2d9ab.rlib" "/home/hina/zluda/target/release/deps/liblibloading-983c36a9b631c1af.rlib" "/home/hina/zluda/target/release/deps/libmemchr-6e6b83a8ef85e41f.rlib" "/home/hina/zluda/target/release/deps/librustc_hash-484774916aaa77b4.rlib" "/home/hina/zluda/target/release/deps/libcapnp-fbdb9219a6b781e1.rlib" "/home/hina/zluda/target/release/deps/libgoblin-d3266e771a70ec0c.rlib" "/home/hina/zluda/target/release/deps/libplain-d96de7fed3340cd5.rlib" "/home/hina/zluda/target/release/deps/liblog-6e5e49a420405c4e.rlib" "/home/hina/zluda/target/release/deps/libscroll-aa3b3b992335a6ea.rlib" "/home/hina/zluda/target/release/deps/librusqlite-63120c93821acd1b.rlib" "/home/hina/zluda/target/release/deps/libbitflags-35b08b40be0adc38.rlib" "/home/hina/zluda/target/release/deps/libsmallvec-77db5aa345a6835e.rlib" "/home/hina/zluda/target/release/deps/libserde_json-812a52c46a17d19a.rlib" "/home/hina/zluda/target/release/deps/libitoa-0f2b747aa40e10e2.rlib" "/home/hina/zluda/target/release/deps/libryu-50ec328df2525d33.rlib" "/home/hina/zluda/target/release/deps/libserde-8fc7743ac093eaa1.rlib" "/home/hina/zluda/target/release/deps/libfallible_streaming_iterator-8a7a7ee3ddf4f27f.rlib" "/home/hina/zluda/target/release/deps/libfallible_iterator-f668a64c3fb494a6.rlib" "/home/hina/zluda/target/release/deps/libhashlink-27d6fc5c4cbb9dc3.rlib" "/home/hina/zluda/target/release/deps/libhashbrown-54ea6538a40dfa7c.rlib" "/home/hina/zluda/target/release/deps/libahash-3175856895ba1a34.rlib" "/home/hina/zluda/target/release/deps/libonce_cell-8b07235fda036ff0.rlib" "/home/hina/zluda/target/release/deps/libcfg_if-0947d0454c401d69.rlib" "/home/hina/zluda/target/release/deps/libzerocopy-a4acf0fd5282716b.rlib" "/home/hina/zluda/target/release/deps/liballocator_api2-15fa7345cd8e62d6.rlib" "/home/hina/zluda/target/release/deps/liblibsqlite3_sys-1cff0783b0fecd3e.rlib" "/home/hina/zluda/target/release/deps/libitertools-7f09220e11ecf438.rlib" "/home/hina/zluda/target/release/deps/libeither-9c940eda7249527a.rlib" "/home/hina/zluda/target/release/deps/libhip_runtime_sys-a965ea7915f12d9d.rlib" "/home/hina/zluda/target/release/deps/libcuda_types-7cf34b5a47979e0c.rlib" "/home/hina/zluda/target/release/deps/libhipblaslt_sys-ff7377000fe97f68.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd-76e7f886980f1e1e.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-8aeb88c971636b63.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libobject-48e813577dedef25.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-81e7db935f03e2c3.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-3d5099dcb4b2881e.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-e08a256ccaab4e23.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-397c7214205b8280.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-89d29e5c20976147.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-0f3fddfffef990c1.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-7ad5971375174be0.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-fa6e5ba6d68baec2.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libadler-0b273394d5978881.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-5365074d7a982323.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-10c12a0fa8b4b9bc.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a813f40b40ba1083.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-e26c0f5e42bf8fe5.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-4bc0c310b2fc0300.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcore-21b614ac5ebf3b76.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-f52f82e3b5d878b1.rlib" "-Wl,-Bdynamic" "-ldl" "-lamdhip64" "-lhipblaslt" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/hina/zluda/target/release/deps/libcublasLt.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
  = note: /usr/bin/ld: cannot find -lhipblaslt: No such file or directory
          collect2: error: ld returned 1 exit status
          

warning: `zluda_blaslt` (lib) generated 1 warning
error: could not compile `zluda_blaslt` (lib) due to 1 previous error; 1 warning emitted
warning: build failed, waiting for other jobs to finish...

ends after that

HinaHyugaHime avatar Mar 09 '24 04:03 HinaHyugaHime

Which version of ROCm do you have?

lshqqytiger avatar Mar 09 '24 06:03 lshqqytiger

Which version of ROCm do you have?

6.0 because its the latest in arch repo and I dont think can downgrade

HinaHyugaHime avatar Mar 09 '24 06:03 HinaHyugaHime

It is not supported. Uninstall it and install 5.7.x.

lshqqytiger avatar Mar 09 '24 06:03 lshqqytiger

It is not supported. Uninstall it and install 5.7.x.

how do I do that?

HinaHyugaHime avatar Mar 09 '24 06:03 HinaHyugaHime

I haven't used arch. I think it is possible using pacman and this archive.

lshqqytiger avatar Mar 09 '24 07:03 lshqqytiger

I haven't used arch. I think it is possible using pacman and this archive.

what can I use ZLUDA with on pytorch? for example would I be able to use xformers? and how

HinaHyugaHime avatar Mar 10 '24 04:03 HinaHyugaHime

also same error

HinaHyugaHime avatar Mar 10 '24 04:03 HinaHyugaHime