Commit Graph

93 Commits

Author SHA1 Message Date
Gavin Zhao
da7ab26875
rocmPackages: use CMake 3.9.2 when building clr
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-23 16:24:48 -04:00
Weijia Wang
92a9b54db1 Revert "rocmPackages.composable_kernel: compress output" 2024-04-17 02:41:57 +02:00
Ulrik Strid
20a3a21814
Merge pull request #300257 from mschwaig/fix-mivisionx
rocmPackages_5.mivisionx: fix build
2024-04-15 12:15:48 +02:00
Weijia Wang
e8d27c907e
Merge pull request #299589 from mschwaig/compress-composable-kernel
rocmPackages.composable_kernel: compress output
2024-04-14 21:09:58 +02:00
Ulrik Strid
3e20bc5468
Merge pull request #298451 from dwf/hiprand_init
rocmPackages_6.hiprand: init at 6.0.2
2024-04-13 10:38:56 +02:00
Ulrik Strid
045f8630f3
Merge pull request #300079 from dwf/miopen
rocmPackages_{5,6}.miopen: fix test builds by linking gtest
2024-04-12 22:28:11 +02:00
Martin Schwaighofer
772dbad3d4 rocmPackages.llvm: replace --replace with --replace-fail (cleanup) 2024-04-07 17:09:56 +02:00
Martin Schwaighofer
e380b53037 rocmPackages.llvm: compress outputs of clang-offload-bundler
This patches the clang-offload-bundler tool to add a compression option
from a more recent version of clang.
This compression option reduces the size of ROCm's fat binaries.
Those binaries contain .hip_fatbin sections with GPU-specific code,
for each target.
Compression is automatically turned on for all produced outputs
via a wrapper, because it's difficult to identify all the places
where the -compression argument would be needed.

Once upsteam introduces handeling for this argument,
we should drop the wrapper again.
This transistion will create inconsistsency, but I do not think that
it will impact any actual users and it's what's practical to implement.
2024-04-07 17:09:56 +02:00
Martin Schwaighofer
4ffd610a37 rocmPackages_6.mivisionx: remove duplicate patches 2024-04-04 00:27:40 +02:00
Martin Schwaighofer
48b253cf6e rocmPackages_6.mivisionx: add __STDC_CONSTANT_MACROS
This change adapts c3157ea4aa for ROCm 6,
in case it fixes the same problem right out of the gate.
Since rocAL is getting deprecated, dropping this and moving the
rocAL build to its own derivation is also a possibility.
2024-04-04 00:26:35 +02:00
Martin Schwaighofer
91319cde13 rocmPackages_6.mivisionx: patch libjpeg-turbo
MIVisionX needs as specific older version of libjpeg-turbo.
The more recent version that is in nixpgks now is built
with a completely different set of patches, so I have resurreced the
only patch that was applied previously from an older verion of nixpkgs.

See:
git show 2cc1925c040c7a564079cf187a187031d5f2c0b1:pkgs/development/libraries/libjpeg-turbo/0001-Compile-transupp.c-as-part-of-the-library.patch

This change adapts 65b9c40639 for ROCm 6,
in case it fixes the same problem right out of the gate.
Using the latest version of libjpeg-turbo form nixpkgs and not changing
the patches might also be worth a try.
2024-04-04 00:26:22 +02:00
Martin Schwaighofer
c3157ea4aa rocmPackages_5.mivisionx: add __STDC_CONSTANT_MACROS to fix build 2024-04-04 00:25:31 +02:00
Martin Schwaighofer
65b9c40639 rocmPackages_5.mivisionx: patch libjpeg-turbo
MIVisionX needs as specific older version of libjpeg-turbo.
The more recent version that is in nixpgks now is built
with a completely different set of patches, so I have resurreced the
only patch that was applied previously from an older verion of nixpkgs.

See:
git show 2cc1925c040c7a564079cf187a187031d5f2c0b1:pkgs/development/libraries/libjpeg-turbo/0001-Compile-transupp.c-as-part-of-the-library.patch
2024-04-04 00:25:15 +02:00
David Warde-Farley
4eac13a88c rocmPackages_6.miopen: correctly link gtest 2024-03-31 18:34:06 +01:00
David Warde-Farley
5165779503 rocmPackages_5.miopen: correctly link gtest 2024-03-31 18:32:38 +01:00
Martin Schwaighofer
710e06c1f1 rocmPackages: add deprecation notice for 'mivisionx-opencl' 2024-03-30 13:02:38 +01:00
Martin Schwaighofer
bfca76c4dd rocmPackages: fix miopengemm deprecation notices 2024-03-30 13:02:05 +01:00
David Warde-Farley
f528df9f37 rocmPackages_6.hiprand: init at 6.0.2
Per the rocRAND README:

"As of version 5.0, [hipRAND] was split into a separate library. As of
version 6.0, hipRAND can no longer be built from rocRAND."

Also fixes `buildTests = true` behaviour for rocRAND.
2024-03-24 23:40:26 +00:00
Ulrik Strid
b10ff2437b
Merge pull request #287846 from mschwaig/rocm-6.0.2
rocmPackages.* 5.7.1→ 6.0.2
2024-03-22 15:08:59 +01:00
Martin Schwaighofer
9a4f48bb25 rocmPackages: use fetchpatch to get clr patches
https://github.com/NixOS/nixpkgs/pull/286720 introduced these patches to address
a specific compilation error mentioned in https://github.com/ROCm/HIP/issues/3403,
but added them to the source tree because they were originally for ROCm 6.

For ROCm 6, we can now switch to using fetchpatch to get the original commits as patches.
2024-03-22 01:08:24 +01:00
Martin Schwaighofer
4b2c4d24b9 rocmPackages: mark migraphx as broken 2024-03-21 22:48:33 +01:00
Martin Schwaighofer
37a4ad0ae2 rocmPackages: update deprecation notice of miopengemm 2024-03-21 22:48:33 +01:00
Martin Schwaighofer
50bf7fb589 rocmPackages: remove miopen-opencl since its deprecated 2024-03-21 22:48:33 +01:00
Martin Schwaighofer
1c842526a4 rocmPackages: fix rocmlir build (e2e test generation) 2024-03-21 22:48:33 +01:00
Indy Ray
44b03bd350 rocmPackages: remove gcc12Stdenv usage, move rocgdb to rocmClangStdenv
Other packages use the default stdenv now.
2024-03-21 22:48:33 +01:00
Indy Ray
5eac14880e rocmPackages: remove unnecessary fixup phase when building rocm-runtime 2024-03-21 22:48:33 +01:00
Indy Ray
f29675f0bf rocmPackages: use wildcard when patching clr shebangs 2024-03-21 22:48:32 +01:00
Indy Ray
f3b4f4a990 rocmPackages: stop adding symlinks to hipify output 2024-03-21 22:48:32 +01:00
Indy Ray
10de03d281 rocmPackages: fix rocprofiler build 2024-03-21 22:48:32 +01:00
Indy Ray
2bddd18639 rocmPackages: fix version handling 2024-03-21 22:48:32 +01:00
Martin Schwaighofer
edd570c596 rocmPackages: skip building composable_kernel profiler for now
We hit relocation R_X86_64_PC32 out of range errors for release builds that include all available targets.
See: https://github.com/ROCm/composable_kernel/issues/789
2024-03-21 22:48:32 +01:00
Martin Schwaighofer
bc377c1e4a rocmPackages: fix rccl build by adding version info to clr output 2024-03-21 22:48:32 +01:00
Martin Schwaighofer
3bc74475b1 rocmPackages: set GPU_TARGETS for migraphx 2024-03-21 22:48:32 +01:00
Martin Schwaighofer
561cac4480 rocmPackages: fix MIOpen build 2024-03-21 22:48:32 +01:00
Martin Schwaighofer
3fe25ab923 rocmPackages: fix rocmlir build 2024-03-21 22:48:32 +01:00
Martin Schwaighofer
fee0f69855 rocmPackages: add git to composable_kernel build
The build still fails, but it fails later.
2024-03-21 22:48:32 +01:00
Martin Schwaighofer
35c73f24d5 rocmPackages: fix CLR build 2024-03-21 22:48:32 +01:00
Martin Schwaighofer
1011991b21 rocmPackaes: fix hipify build 2024-03-21 22:48:32 +01:00
Martin Schwaighofer
12806ec0f8 rocmPackages: fix rocm-runtime build 2024-03-21 22:48:31 +01:00
Martin Schwaighofer
5fdc694054 rocmPackages: manually update a few packages
Update sources for llvm, clang-ocl, MIOpen and hsa-amd-aqlprofile-bin.
2024-03-21 22:48:31 +01:00
Martin Schwaighofer
bc5f473a4f rocmPackages: stop marking versions larger than 6.0.0 as broken 2024-03-21 22:48:31 +01:00
Martin Schwaighofer
f8239b2b90 rocmPackages: update source for rocm-docs-core 2024-03-21 22:48:31 +01:00
Martin Schwaighofer
c0682d3b69 rocmPackages: deprecate miopengemm
There have not been updates avaialble for this package for some time.
I'm assuming it makes sense to drop it.
2024-03-21 22:48:31 +01:00
Martin Schwaighofer
96359faa58 rocmPackages: auto-update using nix-update
Some package updates needed manual fixing,
because they would prepend 'rocm-' to their version string.
2024-03-21 22:48:31 +01:00
Martin Schwaighofer
e68d1f513b rocmPackages: remove version checks from update scripts
The update script for hsa-amd-aqlprofile-bin did not work.
It fails to update the source URL and hash.
2024-03-21 22:48:31 +01:00
Martin Schwaighofer
81fa81f7d8 rocmPackages: re-add ROCm 5.7 2024-03-21 22:00:16 +01:00
Martin Schwaighofer
d6ff35d615 rocmPackages: move over everything from 5/ folder to make 6/ 2024-03-21 21:58:20 +01:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Yaroslav Bolyukin
bbf286d98e
rocmPackages.clr: backport bf16 compilation fix 2024-02-06 11:21:51 +01:00
github-actions[bot]
63c88e8d4d
Merge master into staging-next 2023-12-23 00:02:13 +00:00