Commit Graph

56 Commits

Author SHA1 Message Date
Gavin Zhao
c3848d59c9
rocmPackages.rocblas: add comments about why some GPU archs are not built
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-25 11:45:45 -04:00
Gavin Zhao
32b9f37d57
rocmPackages.rocblas: do not build for gfx1012, gfx940, and gfx 941 GPU targets
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-25 09:55:08 -04:00
Gavin Zhao
7bbde1756d
rocmPackages: no need to pass rocblas to itself
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:40 -04:00
Gavin Zhao
45b3242ab4
rocmPackages: add isa conversion patch in rocprim
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:40 -04:00
Gavin Zhao
e30bae6a69
rocmPackages: fetch patches from Debian if possible
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:39 -04:00
Gavin Zhao
7ff6984fd3
rocmPackages: fix dependencies in rocblas
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:39 -04:00
Gavin Zhao
73e919d8b7
rocmPackages: install headers correctly in rocblas
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:39 -04:00
Gavin Zhao
d276a67466
rocmPackages: don't build arches in parallel in rccl
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:39 -04:00
Gavin Zhao
f4f68f4f6b
rocmPackages: cleanup and remove double building for rocblas
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:38 -04:00
Gavin Zhao
e15c44956b
rocmPackages: respect NIX_BUILD_CORES and cleanup CMake options in rocblas
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:38 -04:00
Gavin Zhao
e24032988f
rocmPackages: extend miopen ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:38 -04:00
Gavin Zhao
41f946176f
rocmPackages: extend rocblas ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:37 -04:00
Gavin Zhao
d6adc4b1d4
rocmPackages: extend tensile ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:37 -04:00
Gavin Zhao
f1367529e9
rocmPackages: extend clr ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:37 -04:00
Gavin Zhao
f579c74f3c
rocmPackages: extend rocm-runtime ISA compatibility
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-24 22:23:37 -04:00
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
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
David Warde-Farley
4eac13a88c rocmPackages_6.miopen: correctly link gtest 2024-03-31 18:34:06 +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
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