-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
rocm-related: 5.3.0 -> 5.3.1 & aggregate #198770
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again!
I tested some OpenCL and hip applications and they worked fine.
Result of 15 packages built:
|
@lovesegfault Rolled into this PR, since they all rely on this PR anyway. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Will wait on @Flakebi's review to merge
Rebuilt everything to make sure this PR is safe to merge. Final result: nixpkgs on pr/aggr [$] took 42m42s
❯ nix-build . -A llvmPackages_rocm.llvm -A llvmPackages_rocm.clang -A hip -A rocclr -A rocm-comgr -A rocm-device-libs -A rocm-opencl-runtime -A rocm-runtime -A rocm-thunk -A rocm-cmake -A rocminfo -A rocm-smi -A rocprim -A hipcub -A rocsparse -A hipsparse -A rccl -A rocfft -A tensile -A rocblas -A miopengemm -A composable_kernel -A clang-ocl -A rocthrust
/nix/store/qn2f45hc8qi4214ss1dcmrxp5vl0iaw1-rocm-llvm-5.3.1
/nix/store/4nvx5fla45198skmxihg83wlw0k8rr57-rocm-llvm-wrapper-5.3.1
/nix/store/9mpxwijw14zkzlz2icalfkh6pb408zmq-hip-5.3.1
/nix/store/sss84hpsbfgm2xd9va9fjb23x7dfwrnj-rocclr-5.3.1
/nix/store/6vaagd85p5zwgmrfyraz1pgirbpaj73r-rocm-comgr-5.3.1
/nix/store/cf91952wf8dy4fjmjyqi5as41gjb3kc2-rocm-device-libs-5.3.1
/nix/store/a47gbycs0lfzrbfhd6s67q65xsq13rn2-rocm-opencl-runtime-5.3.1
/nix/store/9b0rir8yazpb40b1gm2xf5ljyn7ymn34-rocm-runtime-5.3.1
/nix/store/zbj0m25c60v73fr20g113m783xdgrppi-rocm-thunk-5.3.1
/nix/store/d5x36ns4lg734wkbyqbdb6ab7iyi5vda-rocm-cmake-5.3.1
/nix/store/ybbbxlxgwqp4y2jgdkjr1ddjsys9364g-rocminfo-5.3.1
/nix/store/2q6il1lcanja2w39w26r15hxxrzip287-rocm-smi-5.3.1
/nix/store/hgxqja6cjbrirzx46m8cwyx4jdy6v884-rocprim-2.11.0-5.3.1
/nix/store/s66c7hw4fgb8vc80qyjplcl6shjdxfk5-hipcub-2.12.0-5.3.1
/nix/store/a6xnva6sihlh9dav373j54zkhwzdjd3v-rocsparse-2.3.2-5.3.1
/nix/store/9l231q7bwndn2parilii8w164j6ry6c1-hipsparse-2.3.1-5.3.1
/nix/store/jp0gnv8m96m2zd8yy5ayfv4mv16gjd6x-rccl-2.12.10-5.3.1
/nix/store/80biz86ywzh6q1sxvs4xi1j72rywg185-rocfft-1.0.18-5.3.1
/nix/store/3ak9ks0bbxdp20ph0jiyvy5s2519jg0l-python3.10-tensile-4.34.0-5.3.1
/nix/store/xv3dshh1fsbr0yb41qhmrhivy7x57z17-rocblas-2.45.0-5.3.1
/nix/store/cpgzc3n4h9lml6n0y6kfc5hwqvw88l8r-miopengemm-5.3.1
/nix/store/6y2b4y2a94vqv8g1dfzkga7x9r1r1j74-composable_kernel-unstable-2022-11-02
/nix/store/mickbgzbca3x0ckcc3nirmj8vm7lq3yf-clang-ocl-5.3.1
/nix/store/lm5jm9mj548fcjknf3n5b7hyrlifffv8-rocthrust-2.16.0-5.3.1 Also double checked all package roots with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just two questions inline.
matrices = lib.optionalAttrs (buildTests || buildBenchmarks) import ./deps.nix { | ||
inherit fetchzip; | ||
mirror1 = "https://sparse.tamu.edu/MM"; | ||
mirror2 = "https://www.cise.ufl.edu/research/sparse/MM"; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these the same as in hipsparse/deps.nix
?
Maybe you could add them as rocsparse.passthrough.matrices
and import them in hipsparse
instead of duplicating them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea, I'll add it to a TODO list in the tracking issue.
If for some reason hipsparse
begins using different matricies, as long as some of them are the same we can still do this as well.
outputs = [ | ||
"out" | ||
] ++ lib.optionals (buildTests || buildBenchmarks) [ | ||
"test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I run the tests? I get
$ result-test/bin/rocsparse-test
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
fish: Job 1, 'result-test/bin/rocsparse-test' terminated by signal SIGABRT (Abort)
I guess it either needs something in my environment or I have to specify the GPU somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
AFAIK it can't be improved, it's just a ridiculously large build. |
Yes, I looked before, it's gigabytes of so-libraries. |
Description of changes
Most hashes did not change, version bump to maintain compatibility.
Tracking: #197885
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes