30 Oct 2022 |
Madoura | * [ forwarded ]
Hello, I'm trying to package rocBLAS as part of an ongoing massive ROCm stack port, but am running into what I think may be nix-specific issues concerning either LLVM_rocm or hip.
https://github.com/Madouura/nixpkgs/blob/661719becd0ac8134ce018c0a7ed58c947ceb096/pkgs/development/libraries/rocblas/default.nix
For context, see https://github.com/ROCmSoftwarePlatform/rocBLAS/issues/1277 | 07:46:05 |
Madoura | * That was a forward, guess you can't edit it. (or you CAN lol) | 07:46:14 |
Madoura | Yup, that's the hope. | 07:46:33 |
pie_ | Im still not sure whether you can just -p python and a bunch of python packages or whether you basically have to withPackages it | 07:48:04 |
Madoura | You mean in a build script or in a nix shell? | 07:48:35 |
pie_ | doesn't matter | 07:48:45 |
Madoura | If it's a build script like nixpkgs, you're gonna have to add each package with hashes if they don't exist already manually. | 07:49:15 |
Madoura | If it's just something like nix-shell -p python pip then yeah you can just pip them in | 07:49:33 |
pie_ | I mean in your repro you used a nix-shell command where you listed some python packages | 07:49:55 |
Madoura | rocblas/default.nix ? | 07:50:45 |
Madoura | I don't see nix-shell there. | 07:50:50 |
pie_ | no, the first issue post | 07:51:02 |
Madoura | Ah my bad. | 07:51:17 |
pie_ | well anyway, I don't have any good ideas; once I'm this deep I usually just end up trying to figure out what is supposed to be building the missing files and try to figure out why that isnt executing | 07:51:18 |
pie_ | and also possibly compare against a known working build on a system with a working build | 07:52:04 |
Madoura | The final package list is in rocblas/default.nix , so you don't need all of the ones in that issue. | 07:52:10 |
pie_ | Im kind of elbow deep in my own thing right now but maybe you can try that? | 07:52:37 |
pie_ | unless it's easy for me to run this build? | 07:52:50 |
pie_ | Just to be clear I have no idea what any of this is | 07:53:26 |
Madoura | If you have at least 8GB of memory and ensure -DAMDGPU_TARGETS is something like 1030, should be easy to just clone my repo and build it. | 07:53:37 |
Madoura | That's to make it quicker and not take up like 40-50gb of your memoey. | 07:53:58 |
Madoura | * That's to make it quicker and not take up like 40-50gb of your memory. | 07:54:05 |
pie_ | Im glad if I can keep 8 gigs free haha | 07:54:10 |
pie_ | so what are these .co and .dat files anyway and what is supposed to generate them? | 07:54:23 |
Madoura | Ahh we already figured that you. From what I understand they're just build artifacts by tensile of different gpu archs/what's needed for them. | 07:54:52 |
Madoura | * Ahh we already figured that out. From what I understand they're just build artifacts by tensile of different gpu archs/what's needed for them. | 07:55:04 |
pie_ | aha, so whats the current problme | 07:55:18 |
pie_ | * aha, so whats the current problem | 07:55:20 |
Madoura | Bottom of the post, see the log. Bad definitions or something. | 07:55:55 |
Madoura | With host, etc | 07:56:00 |