ZLUDA icon indicating copy to clipboard operation
ZLUDA copied to clipboard

ROCM for debian and llvm-project/llvm does not exist

Open ceewanna opened this issue 1 year ago • 4 comments

I have this problem towards the end of cargo xtask --release. ZLUDA/ext/llvm-project/llvm does not exist

It seems https://rocm.docs.amd.com/projects/install-on-linux/en/latest/ is catered for Ubuntu while mine is Debian. Anyone has work around for this please?

ceewanna avatar Feb 17 '24 15:02 ceewanna

Did you clone with --recursive? If not, run

git submodule init
git submodule update

lshqqytiger avatar Feb 18 '24 14:02 lshqqytiger

I guess I must have forgotten --recursive but when I redo it I had this error towards the end.

Compiling zluda_ccl v0.0.0 (/mnt/d11/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

and a long list of other warnings & errors

warning: `zluda_dnn` (lib) generated 13 warnings

error: could not compile `zluda_dnn` (lib) due to 1 previous error; 13 warnings emitted
^C  Building [=====================>   ] 256/283: llvm-sys(build)

and then finally it ends with

warning: `zluda_dnn` (lib) generated 13 warnings
error: could not compile `zluda_dnn` (lib) due to 1 previous error; 13 warnings emitted

ceewanna avatar Feb 18 '24 21:02 ceewanna

I received this error on Ubuntu recently as well, it can be fixed (at least on ubuntu) by editing the source list that apt uses to pull updates.

In my case I needed to edit: /etc/apt/sources.list.d/rocm.list to change focal to jammy, followed by an apt update / apt upgrade.

You might be able to achieve similar success this way.

oskrtg avatar Feb 19 '24 18:02 oskrtg

@oskrtg Thanks for your input. Mine is Debian 12. Not sure if making changes to the source will be possible or not.

I just realized that I don't have this "(Linux only) ROCm 5.7+ (not ROCm 6) (https://rocm.docs.amd.com/en/latest/deploy/linux/install_overview.html)." It's only for Ubuntu and a few others.

Initially I thought Debian's rocm packages would get through.

rocm-cmake/stable 5.4.0-1 all AMD ROCm cmake modules

rocm-device-libs/stable 5.2.3-2 amd64 AMD specific device-side language runtime libraries

rocm-smi/stable 5.2.3-2 amd64 ROCm System Management Interface (ROCm SMI) command-line interface

rocminfo/stable 5.2.3-2 amd64 ROCm Application for Reporting System Info

ceewanna avatar Feb 19 '24 19:02 ceewanna