Skip to content
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.4.X -> 5.7.0 #258328

Merged
merged 30 commits into from
Oct 10, 2023
Merged

rocm-related: 5.4.X -> 5.7.0 #258328

merged 30 commits into from
Oct 10, 2023

Conversation

Madouura
Copy link
Contributor

@Madouura Madouura commented Oct 1, 2023

Description of changes

Tracking: #197885
Time for a ROCm update.
Not ready for review, unless you just want me to fix some things you happen to find.
We're ready for review!
Any huge changes we want to make, we should wait for ROCm 6.0 where there's a bit of a refactor.
I'm bad at following my own advice.

TODO

  • switch to cudaPackages-like package set
  • base ROCm stack
  • openmp (depends on rocm-device-libs and rocm-runtime)
  • mlir (upstream problem?)
  • openai-triton (needs rebase on LLVM 16 or 17. Switch to triton-unstable?)
    • Don't use rocm-llvm for this!
  • separate rocBLAS for hydra (we're at 3.7GB!)
  • rest of the ROCm stack
  • make sure torchWithRocm works

Shelved

  • flang (likely upstream problem)
  • libclc (depends on upstream rebase)
  • rdc (too many errors, unsure what the problem is)

resolves #257477, resolves #255814, resolves #255345, resolves #252668, resolves #252262, resolves #243383, resolves #242885, resolves #239621, resolves #238161, resolves #238112, resolves #238109, resolves #233556, resolves #231000, resolves #228088, resolves #259796, resolves #259910, fixes #246250

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@Madouura
Copy link
Contributor Author

Madouura commented Oct 4, 2023

At some point after rocFFT 5.5, the huge rocfft-device-X.so files are no longer generated, but instead we have a somewhat bigger kernel cache. If the output limit is still 3GB we should be alright.

@kira-bruneau
Copy link
Contributor

kira-bruneau commented Oct 4, 2023

At some point after rocFFT 5.5, the huge rocfft-device-X.so files are no longer generated, but instead we have a somewhat bigger kernel cache. If the output limit is still 3GB we should be alright.

🎉 Hooray! Yeah ran into the same thing when trying to build this locally last night - makes maintenance for rocfft a lot simpler 😊

I think we still might want to keep gpuTargets as an option though:

diff --git a/pkgs/development/rocm-modules/5/rocfft/default.nix b/pkgs/development/rocm-modules/5/rocfft/default.nix
index 5325744540b5..ac50318622ce 100644
--- a/pkgs/development/rocm-modules/5/rocfft/default.nix
+++ b/pkgs/development/rocm-modules/5/rocfft/default.nix
@@ -14,6 +14,7 @@
 , gtest
 , openmp
 , rocrand
+, gpuTargets ? [ ]
 }:
 
 stdenv.mkDerivation (finalAttrs: {
@@ -45,6 +46,8 @@ stdenv.mkDerivation (finalAttrs: {
     "-DCMAKE_INSTALL_BINDIR=bin"
     "-DCMAKE_INSTALL_LIBDIR=lib"
     "-DCMAKE_INSTALL_INCLUDEDIR=include"
+  ] ++ lib.optionals (gpuTargets != [ ]) [
+    "-DAMDGPU_TARGETS=${lib.concatStringsSep ";" gpuTargets}"
   ];
 
   passthru = {

@Madouura
Copy link
Contributor Author

Madouura commented Oct 5, 2023

At some point after rocFFT 5.5, the huge rocfft-device-X.so files are no longer generated, but instead we have a somewhat bigger kernel cache. If the output limit is still 3GB we should be alright.

🎉 Hooray! Yeah ran into the same thing when trying to build this locally last night - makes maintenance for rocfft a lot simpler 😊

I think we still might want to keep gpuTargets as an option though:

diff --git a/pkgs/development/rocm-modules/5/rocfft/default.nix b/pkgs/development/rocm-modules/5/rocfft/default.nix
index 5325744540b5..ac50318622ce 100644
--- a/pkgs/development/rocm-modules/5/rocfft/default.nix
+++ b/pkgs/development/rocm-modules/5/rocfft/default.nix
@@ -14,6 +14,7 @@
 , gtest
 , openmp
 , rocrand
+, gpuTargets ? [ ]
 }:
 
 stdenv.mkDerivation (finalAttrs: {
@@ -45,6 +46,8 @@ stdenv.mkDerivation (finalAttrs: {
     "-DCMAKE_INSTALL_BINDIR=bin"
     "-DCMAKE_INSTALL_LIBDIR=lib"
     "-DCMAKE_INSTALL_INCLUDEDIR=include"
+  ] ++ lib.optionals (gpuTargets != [ ]) [
+    "-DAMDGPU_TARGETS=${lib.concatStringsSep ";" gpuTargets}"
   ];
 
   passthru = {

Done.

@Madouura
Copy link
Contributor Author

Madouura commented Oct 5, 2023

Did the nixpkgs docs change?
I can't seem to generate them like I used to and I think it just auto-generates now but wanted to make sure before we actually review this. (Still need to fix miopen and migraphx)

@Madouura Madouura force-pushed the pr/rocm-update branch 3 times, most recently from 9cb4560 to 156915a Compare October 6, 2023 00:17
@Madouura
Copy link
Contributor Author

Madouura commented Oct 10, 2023

I am still unsure as to why torchWithRocm on python-3.11 does not detect setuptools correctly.
Is this something I even can or should fix here?

python3.11-torch> Successfully preprocessed all matching files.
python3.11-torch> no configure script, doing nothing
python3.11-torch> building
python3.11-torch> Executing setuptoolsBuildPhase
python3.11-torch> Traceback (most recent call last):
python3.11-torch>   File "/build/source/setup.py", line 224, in <module>
python3.11-torch>     from setuptools import setup, Extension, find_packages
python3.11-torch> ModuleNotFoundError: No module named 'setuptools'
python3.11-torch> /nix/store/3pfjacvdg9f491lfqc9qb2d0nknx73fb-stdenv-linux/setup: line 144: pop_var_context: head of shell_variables not a function context

Related: #246250

@Madouura
Copy link
Contributor Author

Madouura commented Oct 10, 2023

echo $PYTHONPATH
/nix/store/pzf6dnxg8gf04xazzjdwarm7s03cbrgz-python3-3.10.12/lib/python3.10/site-packages

Looks like there's a PYTHONPATH mismatch happening between python3.11 and python3.10.
This doesn't happen with torchWithCuda. This leads me to believe something is getting set wrong only with torchWithRocm.
Upon further inspection, it seems like PYTHONPATH is getting cut short, compared to the CUDA version's PYTHONPATH.
The problem goes away if I remove rocmtoolkit-joined from propagatedBuildInputs. hmm...

@Madouura
Copy link
Contributor Author

Result of nixpkgs-review pr 258328 run on x86_64-linux 1

8 packages marked as broken and skipped:
  • magnetophonDSP.ConstantDetuneChorus
  • rocmPackages.llvm.flang
  • rocmPackages.llvm.flang.doc
  • rocmPackages.llvm.flang.info
  • rocmPackages.llvm.flang.man
  • rocmPackages.llvm.libclc
  • rocmPackages.rdc
  • rocmPackages.rdc.doc
1 package blacklisted:
  • nixos-install-tools
6 packages failed to build:
  • emscriptenPackages.libxml2
  • emscriptenPackages.libxml2.bin
  • emscriptenPackages.libxml2.dev
  • emscriptenPackages.libxml2.doc
  • emscriptenPackages.xmlmirror
  • emscriptenPackages.xmlmirror.doc
240 packages built:
  • Literate
  • binaryen
  • blender
  • blender-hip
  • btdu
  • cheesecutter
  • dtools
  • dub
  • embree
  • embree2
  • emscripten
  • emscriptenPackages.json_c
  • emscriptenPackages.json_c.dev
  • emscriptenPackages.zlib
  • faust
  • faust2alqt
  • faust2alsa
  • faust2csound
  • faust2firefox
  • faust2jack
  • faust2jackrust
  • faust2jaqt
  • faust2ladspa
  • faust2lv2
  • faust2sc
  • faustPhysicalModeling
  • faustlive
  • frugally-deep
  • gtkd
  • guitarix
  • halide
  • hqplayerd
  • ispc
  • kapitonov-plugins-pack
  • ldc
  • lit (python310Packages.lit)
  • lit.dist (python310Packages.lit.dist)
  • lldap
  • lldb
  • lldb.dev
  • lldb.lib
  • lldb_10
  • lldb_10.dev
  • lldb_10.lib
  • lldb_11
  • lldb_11.dev
  • lldb_11.lib
  • lldb_12
  • lldb_12.dev
  • lldb_12.lib
  • lldb_13
  • lldb_13.dev
  • lldb_13.lib
  • lldb_15
  • lldb_15.dev
  • lldb_15.lib
  • lldb_16
  • lldb_16.dev
  • lldb_16.lib
  • lldb_9
  • lldb_9.dev
  • lldb_9.lib
  • llvmPackages_14.openmp
  • llvmPackages_14.openmp.dev
  • llvmPackages_15.lldb-manpages
  • llvmPackages_15.openmp
  • llvmPackages_15.openmp.dev
  • llvmPackages_16.lldb-manpages
  • llvmPackages_16.openmp
  • llvmPackages_16.openmp.dev
  • magma-hip
  • magnetophonDSP.CharacterCompressor
  • magnetophonDSP.CompBus
  • magnetophonDSP.LazyLimiter
  • magnetophonDSP.MBdistortion
  • magnetophonDSP.RhythmDelay
  • magnetophonDSP.VoiceOfFaust
  • magnetophonDSP.faustCompressors
  • magnetophonDSP.pluginUtils
  • magnetophonDSP.shelfMultiBand
  • mooSpace
  • nixd
  • onedrive
  • open-music-kontrollers.mephisto
  • openimagedenoise
  • opensycl
  • opensyclWithRocm
  • outputcheck
  • outputcheck.dist
  • pagefind
  • python310Packages.barectf
  • python310Packages.barectf.dist
  • python310Packages.encodec
  • python310Packages.encodec.dist
  • python310Packages.openai-triton
  • python310Packages.openai-triton-bin
  • python310Packages.openai-triton-bin.dist
  • python310Packages.openai-triton.dist
  • python310Packages.torch-bin
  • python310Packages.torch-bin.dist
  • python310Packages.torchWithCuda
  • python310Packages.torchWithCuda.dev
  • python310Packages.torchWithCuda.dist
  • python310Packages.torchWithCuda.lib
  • python310Packages.torchWithRocm
  • python310Packages.torchWithRocm.dev
  • python310Packages.torchWithRocm.dist
  • python310Packages.torchWithRocm.lib
  • python310Packages.torchaudio-bin
  • python310Packages.torchaudio-bin.dist
  • python310Packages.torchvision-bin
  • python310Packages.torchvision-bin.dist
  • python310Packages.trainer
  • python310Packages.trainer.dist
  • python311Packages.barectf
  • python311Packages.barectf.dist
  • python311Packages.encodec
  • python311Packages.encodec.dist
  • python311Packages.lit
  • python311Packages.lit.dist
  • python311Packages.openai-triton
  • python311Packages.openai-triton-bin
  • python311Packages.openai-triton-bin.dist
  • python311Packages.openai-triton.dist
  • python311Packages.torch-bin
  • python311Packages.torch-bin.dist
  • python311Packages.torchWithCuda
  • python311Packages.torchWithCuda.dev
  • python311Packages.torchWithCuda.dist
  • python311Packages.torchWithCuda.lib
  • python311Packages.torchWithRocm
  • python311Packages.torchWithRocm.dev
  • python311Packages.torchWithRocm.dist
  • python311Packages.torchWithRocm.lib
  • python311Packages.torchaudio-bin
  • python311Packages.torchaudio-bin.dist
  • python311Packages.torchvision-bin
  • python311Packages.torchvision-bin.dist
  • python311Packages.trainer
  • python311Packages.trainer.dist
  • rocmPackages.clang-ocl
  • rocmPackages.clr
  • rocmPackages.clr.icd
  • rocmPackages.composable_kernel
  • rocmPackages.half
  • rocmPackages.hip-common
  • rocmPackages.hipblas
  • rocmPackages.hipcc
  • rocmPackages.hipcub
  • rocmPackages.hipfft
  • rocmPackages.hipfort
  • rocmPackages.hipify
  • rocmPackages.hiprand
  • rocmPackages.hipsolver
  • rocmPackages.hipsparse
  • rocmPackages.hsa-amd-aqlprofile-bin
  • rocmPackages.llvm.bintools
  • rocmPackages.llvm.clang
  • rocmPackages.llvm.clang-tools-extra
  • rocmPackages.llvm.clang-tools-extra.doc
  • rocmPackages.llvm.clang-tools-extra.info
  • rocmPackages.llvm.clang-tools-extra.man
  • rocmPackages.llvm.clang-unwrapped
  • rocmPackages.llvm.clang-unwrapped.doc
  • rocmPackages.llvm.clang-unwrapped.info
  • rocmPackages.llvm.clang-unwrapped.man
  • rocmPackages.llvm.compiler-rt
  • rocmPackages.llvm.libc
  • rocmPackages.llvm.libc.doc
  • rocmPackages.llvm.libcxx
  • rocmPackages.llvm.libcxx.doc
  • rocmPackages.llvm.libcxxabi
  • rocmPackages.llvm.libunwind
  • rocmPackages.llvm.libunwind.doc
  • rocmPackages.llvm.lld
  • rocmPackages.llvm.lld.doc
  • rocmPackages.llvm.lldb
  • rocmPackages.llvm.lldb.doc
  • rocmPackages.llvm.lldb.info
  • rocmPackages.llvm.lldb.man
  • rocmPackages.llvm.llvm
  • rocmPackages.llvm.llvm.doc
  • rocmPackages.llvm.llvm.info
  • rocmPackages.llvm.llvm.man
  • rocmPackages.llvm.mlir
  • rocmPackages.llvm.openmp
  • rocmPackages.llvm.openmp.doc
  • rocmPackages.llvm.openmp.info
  • rocmPackages.llvm.openmp.man
  • rocmPackages.llvm.polly
  • rocmPackages.llvm.polly.doc
  • rocmPackages.llvm.polly.info
  • rocmPackages.llvm.polly.man
  • rocmPackages.llvm.pstl
  • rocmPackages.llvm.rocmClangStdenv
  • rocmPackages.migraphx
  • rocmPackages.miopen (rocmPackages.miopen-hip)
  • rocmPackages.miopen-opencl
  • rocmPackages.miopengemm
  • rocmPackages.miopengemm.doc
  • rocmPackages.rccl
  • rocmPackages.rocalution
  • rocmPackages.rocblas
  • rocmPackages.rocdbgapi
  • rocmPackages.rocdbgapi.doc
  • rocmPackages.rocfft
  • rocmPackages.rocgdb
  • rocmPackages.rocm-cmake
  • rocmPackages.rocm-comgr
  • rocmPackages.rocm-core
  • rocmPackages.rocm-device-libs
  • rocmPackages.rocm-docs-core
  • rocmPackages.rocm-docs-core.dist
  • rocmPackages.rocm-runtime
  • rocmPackages.rocm-smi
  • rocmPackages.rocm-thunk
  • rocmPackages.rocminfo
  • rocmPackages.rocmlir
  • rocmPackages.rocmlir-rock
  • rocmPackages.rocmlir.external
  • rocmPackages.rocprim
  • rocmPackages.rocprofiler
  • rocmPackages.rocr-debug-agent
  • rocmPackages.rocsolver
  • rocmPackages.rocsparse
  • rocmPackages.rocthrust
  • rocmPackages.roctracer
  • rocmPackages.rocwmma
  • rocmPackages.tensile
  • rocmPackages.tensile.dist
  • rund
  • sambamba
  • tambura
  • tilix
  • tinygo
  • tts
  • tts.dist
  • vlang
  • vscode-extensions.vadimcn.vscode-lldb
  • zrythm

@lovesegfault
Copy link
Member

Kicked-off another build ~30 min ago, just waiting on that.

@lovesegfault
Copy link
Member

I'm noticing that flang is insanely slow, I suspect we're missing CMAKE_BUILD_TYPE=Release in the cmakeFlags?

@lovesegfault
Copy link
Member

I'm trying out this patch that explicitly makes the build Release everywhere: https://gist.github.com/lovesegfault/1cc2a2bde3664096c9763642cd35f99b

@lovesegfault
Copy link
Member

I rebuilt rocmPackages.llvm.clang-unwrapped and inspected to make sure it was indeed being built with -O3.

Maybe the build for rocsolver really is just insanely slow, it's been 1h20m on a 192 core/1TB RAM EPYC machine.

@Madouura
Copy link
Contributor Author

Madouura commented Oct 10, 2023

I rebuilt rocmPackages.llvm.clang-unwrapped and inspected to make sure it was indeed being built with -O3.

Maybe the build for rocsolver really is just insanely slow, it's been 1h20m on a 192 core/1TB RAM EPYC machine.

rocSolver and a couple other builds are insanely slow, especially for linking.
I haven't found anything I can do about it.
AFAIK, because I've looked at every cmake file, every build is by default, release already.
flang and libclc are broken, see the opening comment.
Forgot to add rdc to the opening comment, but it's broken for now too.

@lovesegfault
Copy link
Member

Yeah, the rocsolver build is just insanely slow, even on master, this PR didn't change that.

@lovesegfault
Copy link
Member

Result of nixpkgs-review pr 258328 run on x86_64-linux 1

15 packages marked as broken and skipped:
  • magnetophonDSP.ConstantDetuneChorus
  • rocmPackages.llvm.flang
  • rocmPackages.llvm.flang.doc
  • rocmPackages.llvm.flang.info
  • rocmPackages.llvm.flang.man
  • rocmPackages.llvm.libclc
  • rocmPackages.rdc
  • rocmPackages.rdc.doc
  • rocmPackages_5.llvm.flang
  • rocmPackages_5.llvm.flang.doc
  • rocmPackages_5.llvm.flang.info
  • rocmPackages_5.llvm.flang.man
  • rocmPackages_5.llvm.libclc
  • rocmPackages_5.rdc
  • rocmPackages_5.rdc.doc
2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
233 packages built:
  • Literate
  • binaryen
  • blender
  • blender-hip
  • btdu
  • cheesecutter
  • dtools
  • dub
  • embree
  • embree2
  • emscripten
  • faust (faust2)
  • faust2alqt
  • faust2alsa
  • faust2csound
  • faust2firefox
  • faust2jack
  • faust2jackrust
  • faust2jaqt
  • faust2ladspa
  • faust2lv2
  • faust2sc
  • faustPhysicalModeling
  • faustlive
  • frugally-deep
  • gtkd
  • guitarix
  • halide
  • hqplayerd
  • ispc
  • kapitonov-plugins-pack
  • ldc
  • lit (python310Packages.lit)
  • lit.dist (python310Packages.lit.dist)
  • lldap
  • lldb (lldb_14 ,llvmPackages_14.lldb)
  • lldb.dev (lldb_14.dev ,llvmPackages_14.lldb.dev)
  • lldb.lib (lldb_14.lib ,llvmPackages_14.lldb.lib)
  • lldb_10 (llvmPackages_10.lldb)
  • lldb_10.dev (llvmPackages_10.lldb.dev)
  • lldb_10.lib (llvmPackages_10.lldb.lib)
  • lldb_11 (llvmPackages.lldb ,llvmPackages_11.lldb)
  • lldb_11.dev (llvmPackages.lldb.dev ,llvmPackages_11.lldb.dev)
  • lldb_11.lib (llvmPackages.lldb.lib ,llvmPackages_11.lldb.lib)
  • lldb_12 (llvmPackages_12.lldb)
  • lldb_12.dev (llvmPackages_12.lldb.dev)
  • lldb_12.lib (llvmPackages_12.lldb.lib)
  • lldb_13 (llvmPackages_13.lldb)
  • lldb_13.dev (llvmPackages_13.lldb.dev)
  • lldb_13.lib (llvmPackages_13.lldb.lib)
  • lldb_15 (llvmPackages_15.lldb)
  • lldb_15.dev (llvmPackages_15.lldb.dev)
  • lldb_15.lib (llvmPackages_15.lldb.lib)
  • lldb_16 (llvmPackages_16.lldb)
  • lldb_16.dev (llvmPackages_16.lldb.dev)
  • lldb_16.lib (llvmPackages_16.lldb.lib)
  • lldb_9 (llvmPackages_9.lldb)
  • lldb_9.dev (llvmPackages_9.lldb.dev)
  • lldb_9.lib (llvmPackages_9.lldb.lib)
  • llvmPackages_14.openmp
  • llvmPackages_14.openmp.dev
  • llvmPackages_15.lldb-manpages
  • llvmPackages_15.openmp
  • llvmPackages_15.openmp.dev
  • llvmPackages_16.lldb-manpages
  • llvmPackages_16.openmp
  • llvmPackages_16.openmp.dev
  • magma-hip
  • magnetophonDSP.CharacterCompressor
  • magnetophonDSP.CompBus
  • magnetophonDSP.LazyLimiter
  • magnetophonDSP.MBdistortion
  • magnetophonDSP.RhythmDelay
  • magnetophonDSP.VoiceOfFaust
  • magnetophonDSP.faustCompressors
  • magnetophonDSP.pluginUtils
  • magnetophonDSP.shelfMultiBand
  • mooSpace
  • nixd
  • onedrive
  • open-music-kontrollers.mephisto
  • openimagedenoise
  • opensycl
  • opensyclWithRocm
  • outputcheck
  • outputcheck.dist
  • pagefind
  • python310Packages.barectf
  • python310Packages.barectf.dist
  • python310Packages.encodec
  • python310Packages.encodec.dist
  • python310Packages.openai-triton
  • python310Packages.openai-triton-bin
  • python310Packages.openai-triton-bin.dist
  • python310Packages.openai-triton.dist
  • python310Packages.torchWithCuda
  • python310Packages.torchWithCuda.dev
  • python310Packages.torchWithCuda.dist
  • python310Packages.torchWithCuda.lib
  • python310Packages.torchWithRocm
  • python310Packages.torchWithRocm.dev
  • python310Packages.torchWithRocm.dist
  • python310Packages.torchWithRocm.lib
  • python310Packages.torchaudio-bin
  • python310Packages.torchaudio-bin.dist
  • python310Packages.torchvision-bin
  • python310Packages.torchvision-bin.dist
  • python310Packages.trainer
  • python310Packages.trainer.dist
  • python311Packages.barectf
  • python311Packages.barectf.dist
  • python311Packages.encodec
  • python311Packages.encodec.dist
  • python311Packages.lit
  • python311Packages.lit.dist
  • python311Packages.openai-triton
  • python311Packages.openai-triton-bin
  • python311Packages.openai-triton-bin.dist
  • python311Packages.openai-triton.dist
  • python311Packages.torchWithCuda
  • python311Packages.torchWithCuda.dev
  • python311Packages.torchWithCuda.dist
  • python311Packages.torchWithCuda.lib
  • python311Packages.torchWithRocm
  • python311Packages.torchWithRocm.dev
  • python311Packages.torchWithRocm.dist
  • python311Packages.torchWithRocm.lib
  • python311Packages.torchaudio-bin
  • python311Packages.torchaudio-bin.dist
  • python311Packages.torchvision-bin
  • python311Packages.torchvision-bin.dist
  • python311Packages.trainer
  • python311Packages.trainer.dist
  • rocmPackages.clang-ocl (rocmPackages_5.clang-ocl)
  • rocmPackages.clr (rocmPackages_5.clr)
  • rocmPackages.clr.icd (rocmPackages_5.clr.icd)
  • rocmPackages.composable_kernel (rocmPackages_5.composable_kernel)
  • rocmPackages.half (rocmPackages_5.half)
  • rocmPackages.hip-common (rocmPackages_5.hip-common)
  • rocmPackages.hipblas (rocmPackages_5.hipblas)
  • rocmPackages.hipcc (rocmPackages_5.hipcc)
  • rocmPackages.hipcub (rocmPackages_5.hipcub)
  • rocmPackages.hipfft (rocmPackages_5.hipfft)
  • rocmPackages.hipfort (rocmPackages_5.hipfort)
  • rocmPackages.hipify (rocmPackages_5.hipify)
  • rocmPackages.hiprand (rocmPackages.rocrand ,rocmPackages_5.hiprand ,rocmPackages_5.rocrand)
  • rocmPackages.hipsolver (rocmPackages_5.hipsolver)
  • rocmPackages.hipsparse (rocmPackages_5.hipsparse)
  • rocmPackages.hsa-amd-aqlprofile-bin (rocmPackages_5.hsa-amd-aqlprofile-bin)
  • rocmPackages.llvm.bintools (rocmPackages_5.llvm.bintools)
  • rocmPackages.llvm.clang (rocmPackages_5.llvm.clang)
  • rocmPackages.llvm.clang-tools-extra (rocmPackages_5.llvm.clang-tools-extra)
  • rocmPackages.llvm.clang-tools-extra.doc (rocmPackages_5.llvm.clang-tools-extra.doc)
  • rocmPackages.llvm.clang-tools-extra.info (rocmPackages_5.llvm.clang-tools-extra.info)
  • rocmPackages.llvm.clang-tools-extra.man (rocmPackages_5.llvm.clang-tools-extra.man)
  • rocmPackages.llvm.clang-unwrapped (rocmPackages_5.llvm.clang-unwrapped)
  • rocmPackages.llvm.clang-unwrapped.doc (rocmPackages_5.llvm.clang-unwrapped.doc)
  • rocmPackages.llvm.clang-unwrapped.info (rocmPackages_5.llvm.clang-unwrapped.info)
  • rocmPackages.llvm.clang-unwrapped.man (rocmPackages_5.llvm.clang-unwrapped.man)
  • rocmPackages.llvm.compiler-rt (rocmPackages_5.llvm.compiler-rt)
  • rocmPackages.llvm.libc (rocmPackages_5.llvm.libc)
  • rocmPackages.llvm.libc.doc (rocmPackages_5.llvm.libc.doc)
  • rocmPackages.llvm.libcxx (rocmPackages_5.llvm.libcxx)
  • rocmPackages.llvm.libcxx.doc (rocmPackages_5.llvm.libcxx.doc)
  • rocmPackages.llvm.libcxxabi (rocmPackages_5.llvm.libcxxabi)
  • rocmPackages.llvm.libunwind (rocmPackages_5.llvm.libunwind)
  • rocmPackages.llvm.libunwind.doc (rocmPackages_5.llvm.libunwind.doc)
  • rocmPackages.llvm.lld (rocmPackages_5.llvm.lld)
  • rocmPackages.llvm.lld.doc (rocmPackages_5.llvm.lld.doc)
  • rocmPackages.llvm.lldb (rocmPackages_5.llvm.lldb)
  • rocmPackages.llvm.lldb.doc (rocmPackages_5.llvm.lldb.doc)
  • rocmPackages.llvm.lldb.info (rocmPackages_5.llvm.lldb.info)
  • rocmPackages.llvm.lldb.man (rocmPackages_5.llvm.lldb.man)
  • rocmPackages.llvm.llvm (rocmPackages_5.llvm.llvm)
  • rocmPackages.llvm.llvm.doc (rocmPackages_5.llvm.llvm.doc)
  • rocmPackages.llvm.llvm.info (rocmPackages_5.llvm.llvm.info)
  • rocmPackages.llvm.llvm.man (rocmPackages_5.llvm.llvm.man)
  • rocmPackages.llvm.mlir (rocmPackages_5.llvm.mlir)
  • rocmPackages.llvm.openmp (rocmPackages_5.llvm.openmp)
  • rocmPackages.llvm.openmp.doc (rocmPackages_5.llvm.openmp.doc)
  • rocmPackages.llvm.openmp.info (rocmPackages_5.llvm.openmp.info)
  • rocmPackages.llvm.openmp.man (rocmPackages_5.llvm.openmp.man)
  • rocmPackages.llvm.polly (rocmPackages_5.llvm.polly)
  • rocmPackages.llvm.polly.doc (rocmPackages_5.llvm.polly.doc)
  • rocmPackages.llvm.polly.info (rocmPackages_5.llvm.polly.info)
  • rocmPackages.llvm.polly.man (rocmPackages_5.llvm.polly.man)
  • rocmPackages.llvm.pstl (rocmPackages_5.llvm.pstl)
  • rocmPackages.llvm.rocmClangStdenv (rocmPackages_5.llvm.rocmClangStdenv)
  • rocmPackages.migraphx (rocmPackages_5.migraphx)
  • rocmPackages.miopen (rocmPackages.miopen-hip ,rocmPackages_5.miopen ,rocmPackages_5.miopen-hip)
  • rocmPackages.miopen-opencl (rocmPackages_5.miopen-opencl)
  • rocmPackages.miopengemm (rocmPackages_5.miopengemm)
  • rocmPackages.miopengemm.doc (rocmPackages_5.miopengemm.doc)
  • rocmPackages.rccl (rocmPackages_5.rccl)
  • rocmPackages.rocalution (rocmPackages_5.rocalution)
  • rocmPackages.rocblas (rocmPackages_5.rocblas)
  • rocmPackages.rocdbgapi (rocmPackages_5.rocdbgapi)
  • rocmPackages.rocdbgapi.doc (rocmPackages_5.rocdbgapi.doc)
  • rocmPackages.rocfft (rocmPackages_5.rocfft)
  • rocmPackages.rocgdb (rocmPackages_5.rocgdb)
  • rocmPackages.rocm-cmake (rocmPackages_5.rocm-cmake)
  • rocmPackages.rocm-comgr (rocmPackages_5.rocm-comgr)
  • rocmPackages.rocm-core (rocmPackages_5.rocm-core)
  • rocmPackages.rocm-device-libs (rocmPackages_5.rocm-device-libs)
  • rocmPackages.rocm-docs-core (rocmPackages_5.rocm-docs-core)
  • rocmPackages.rocm-docs-core.dist (rocmPackages_5.rocm-docs-core.dist)
  • rocmPackages.rocm-runtime (rocmPackages_5.rocm-runtime)
  • rocmPackages.rocm-smi (rocmPackages_5.rocm-smi)
  • rocmPackages.rocm-thunk (rocmPackages_5.rocm-thunk)
  • rocmPackages.rocminfo (rocmPackages_5.rocminfo)
  • rocmPackages.rocmlir (rocmPackages_5.rocmlir)
  • rocmPackages.rocmlir-rock (rocmPackages_5.rocmlir-rock)
  • rocmPackages.rocmlir.external (rocmPackages_5.rocmlir.external)
  • rocmPackages.rocprim (rocmPackages_5.rocprim)
  • rocmPackages.rocprofiler (rocmPackages_5.rocprofiler)
  • rocmPackages.rocr-debug-agent (rocmPackages_5.rocr-debug-agent)
  • rocmPackages.rocsolver (rocmPackages_5.rocsolver)
  • rocmPackages.rocsparse (rocmPackages_5.rocsparse)
  • rocmPackages.rocthrust (rocmPackages_5.rocthrust)
  • rocmPackages.roctracer (rocmPackages_5.roctracer)
  • rocmPackages.rocwmma (rocmPackages_5.rocwmma)
  • rocmPackages.tensile (rocmPackages_5.tensile)
  • rocmPackages.tensile.dist (rocmPackages_5.tensile.dist)
  • rund
  • sambamba
  • tambura
  • tilix
  • tinygo
  • tts
  • tts.dist
  • vlang
  • vscode-extensions.vadimcn.vscode-lldb
  • zrythm

@lovesegfault
Copy link
Member

I'm going to merge this, once again, huge props to @Madouura for pushing this fantastic work to completion!

@lovesegfault lovesegfault merged commit fd1b814 into NixOS:master Oct 10, 2023
26 checks passed
@Madouura
Copy link
Contributor Author

Thanks for the testing and the merge! ❤️

propagatedBuildInputs = [ filelock ];

postPatch = let
# Bash was getting weird without linting,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RE: cosmetic changes

Sorry I post this after the fact, but it's conventional to keep postPatch next to src

Copy link
Contributor Author

@Madouura Madouura Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always did pname -> version -> outputs -> src -> patches -> native/build/propagated/inputs -> cmakeFlags -> post/pre/phase.
Where is this convention?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I think I remember is a comment from SuperSandro, but I'm failing to find it. The logic was, roughly speaking, to list attributes in the "chronological" order of when they are relevant: the first phase is unpacking the sources, so src goes first, and the very next thing is patching, and the very next after that is postPatch, and all of that happens before the configurePhase and before the build

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Are native/build/propagated/inputs and cmakeFlags after patchPhase?

Copy link
Contributor

@SomeoneSerge SomeoneSerge Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like https://discourse.nixos.org/t/document-attribute-ordering-in-package-expressions/4887?u=sergek:

# Phases attrs are ordered exactly as they're executed in setup.sh

That being said, it's just a convention

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But also generally big formatting changes are undesirable because they're inconvenient to review, especially when formatting changes are entangled with functional changes


# Upstream's setup.py tries to write cache somewhere in ~/
export HOME=$TMPDIR
export HOME=$(mktemp -d)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with TMPDIR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is TMPDIR always guaranteed? I swear I remember someone telling me to use mktemp -d instead a while back on nixpkgs.

Copy link
Member

@vcunat vcunat Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TMPDIR is documented at https://nixos.org/manual/nix/stable/language/derivations
(but otherwise I'm just passing by)

@lovesegfault
Copy link
Member

@Madouura We need to remove the warning from the aliases, unfortunately, they're causing all invocations of nix search to issue warnings.

I apologize for misguiding you, I should've known this would happen.

Let's just leave them as normal aliases, and convert to a throw after the release.

@Madouura
Copy link
Contributor Author

Done. #260910

@nonetrix
Copy link
Contributor

nonetrix commented Apr 21, 2024

Hey, I think this might be causing build failures not sure but I am getting this now when building Ollama

error: builder for '/nix/store/jcx9nfys3d9290a4q2dlg9255f4dr09k-rocblas-tensile-gfx80-6.0.2.drv' failed with exit code 1;
       last 10 log lines:
       > -- Generating done (0.1s)
       > CMake Warning:
       >   Manually-specified variables were not used by the project:
       >
       >     BUILD_TESTING
       >     CMAKE_EXPORT_NO_PACKAGE_REGISTRY
       >     CMAKE_POLICY_DEFAULT_CMP0025
       >
       > 
       > CMake Generate step failed.  Build files cannot be regenerated correctly.
       For full logs, run 'nix log /nix/store/jcx9nfys3d9290a4q2dlg9255f4dr09k-rocblas-tensile-gfx80-6.0.2.drv'.
error: 1 dependencies of derivation '/nix/store/x9jql2ipp72rgifg1ilisg3zszsf6c1d-rocblas-6.0.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2ymj9jjy9jw1vpsrz8f99z8w8n9ijfhr-ollama-0.1.31.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8f3nkxjrgzblrgxcmgnp075nmxvfpaxl-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wzhv2zh2z9cj5ib6msaxm42pvnq12bfq-unit-ollama.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ysnq8szg89wx1rqqkx2bv5in8bgfnsb3-nixos-system-nixos-24.05.20240419.5c24cf2.drv' failed to build

And the full error

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/jcx9nfys3d9290a4q2dlg9255f4dr09k-rocblas-tensile-gfx80-6.0.2.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/ihrai11dd7zmmvj6j9g1kyj4337f85hh-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
substituteStream(): WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'library/src/CMakeLists.txt')
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/n>
-- The CXX compiler identification is Clang 17.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/zx631f6v3knxlykwxvp0hkplicllsdk3-clr-6.0.2/bin/hipcc - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Use hip-clang to build for amdgpu backend
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- OS detected is unknown
-- ROCM Platform Version:  is not set, using default supported list
-- Performing Test COMPILER_HAS_TARGET_ID_gfx803
-- Performing Test COMPILER_HAS_TARGET_ID_gfx803 - Success
-- using local Tensile from /build/source/tensile, copied to /build/source/tensile/lib/python3.11/site-packages/Tensile
-- Adding /build/source/tensile to CMAKE_PREFIX_PATH
-- The C compiler identification is Clang 17.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/zx631f6v3knxlykwxvp0hkplicllsdk3-clr-6.0.2/bin/hipcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS
-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS - Success
-- Using AMDGPU_TARGETS: gfx803
-- Tensile script: /build/source/tensile/lib/python3.11/site-packages/Tensile/bin/TensileCreateLibrary
-- Tensile_CREATE_COMMAND: /build/source/tensile/lib/python3.11/site-packages/Tensile/bin/TensileCreateLibrary;--merge-files;--separate-architectures;--lazy-library-loading;--no-short-file-names;--no-library-p>
-- Tensile_MANIFEST_FILE_PATH: /build/source/build/Tensile/library/TensileManifest.txt
'/build/source/tensile/lib/python3.11/site-packages/Tensile/bin/TensileCreateLibrary' '--merge-files' '--separate-architectures' '--lazy-library-loading' '--no-short-file-names' '--no-library-print-debug' '--c>

################################################################################
# Tensile Create Library
Tensile::WARNING: Did not detect SupportedISA: [(8, 0, 3), (9, 0, 0), (9, 0, 6), (9, 0, 8), (9, 0, 10), (9, 4, 0), (9, 4, 1), (9, 4, 2), (10, 1, 0), (10, 1, 1), (10, 1, 2), (10, 3, 0), (10, 3, 1), (11, 0, 0), >
# Found  hipcc version 6.0.32831-
                  cap gfx000 gfx803 gfx900 gfx906 gfx908 gfx90a gfx940 gfx941 gfx942 gfx1010 gfx1011 gfx1012 gfx1030 gfx1031 gfx1100 gfx1101 gfx1102 
      HasMFMA_bf16_1k      0      0      0      0      0      1      1      1      1       0       0       0       0       0       0       0       0 
       HasMFMA_i8_908      0      0      0      0      1      1      0      0      0       0       0       0       0       0       0       0       0 
       HasMFMA_i8_940      0      0      0      0      0      0      1      1      1       0       0       0       0       0       0       0       0 
           HasAddLshl      0      0      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
         HasAtomicAdd      0      0      0      0      1      1      1      1      1       0       0       0       0       0       1       1       1 
   HasDirectToLdsDest      0      0      0      0      0      0      0      0      0       0       0       0       0       0       0       0       0 
 HasDirectToLdsNoDest      0      1      1      1      1      1      1      1      1       1       1       1       1       1       0       0       0 
        HasExplicitCO      0      0      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
        HasExplicitNC      0      0      0      0      0      0      0      0      0       1       1       1       1       1       1       1       1 
       HasGLCModifier      0      1      1      1      1      1      0      0      0       1       1       1       1       1       1       1       1 
            HasLshlOr      0      0      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
              HasMFMA      0      0      0      0      1      1      1      1      1       0       0       0       0       0       0       0       0 
            HasSMulHi      0      0      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
              HasWMMA      0      0      0      0      0      0      0      0      0       0       0       0       0       0       1       1       1 
           MaxLgkmcnt      1      1      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
             MaxVmcnt      0      1      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
         SupportedISA      0      1      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
      SupportedSource      1      1      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
           HasMFMA_b8      0      0      0      0      0      0      1      1      1       0       0       0       0       0       0       0       0 
     HasMFMA_constSrc      0      0      0      0      0      1      1      1      1       0       0       0       0       0       0       0       0 
       v_dot2_f32_f16      0      0      0      1      1      1      1      1      1       0       1       1       1       1       1       1       1 
      v_dot2c_f32_f16      0      0      0      0      1      1      1      1      1       0       1       1       1       1       1       1       1 
            v_fma_f16      0      0      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
           v_fmac_f16      0      0      0      0      0      0      0      0      0       0       0       0       0       0       0       0       0 
            v_mac_f16      0      1      1      1      1      1      1      1      1       0       0       0       0       0       0       0       0 
         v_pk_fma_f16      0      0      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
        v_pk_fmac_f16      0      0      0      0      0      0      0      0      0       0       0       0       0       0       0       0       0 
            v_fma_f32      0      1      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
        v_fma_mix_f32      0      0      0      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
           v_fmac_f32      0      0      0      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
            v_mac_f32      0      1      1      1      1      1      0      0      0       1       1       1       0       0       0       0       0 
        v_mad_mix_f32      0      0      1      0      0      0      0      0      0       0       0       0       0       0       0       0       0 
          HasMFMA_f64      0      0      0      0      0      1      1      1      1       0       0       0       0       0       0       0       0 
            v_fma_f64      0      1      1      1      1      1      1      1      1       1       1       1       1       1       1       1       1 
           HasMFMA_f8      0      0      0      0      0      0      1      1      1       0       0       0       0       0       0       0       0 
    VOP3v_dot4_i32_i8      0      0      0      1      1      1      1      1      1       0       1       1       1       1       0       0       0 
        v_dot4_i32_i8      0      0      0      0      0      0      0      0      0       0       0       0       0       0       0       0       0 
       v_dot4c_i32_i8      0      0      0      0      1      1      1      1      1       0       1       1       1       1       0       0       0 
HasMFMA_bf16_original      0      0      0      0      1      1      0      0      0       0       0       0       0       0       0       0       0 
         HasMFMA_vgpr      0      0      0      0      0      1      1      1      1       0       0       0       0       0       0       0       0 
         HasMFMA_xf32      0      0      0      0      0      0      1      1      1       0       0       0       0       0       0       0       0 
   ArchAccUnifiedRegs      0      0      0      0      0      1      1      1      1       0       0       0       0       0       0       0       0 
       CMPXWritesSGPR      1      1      1      1      1      1      1      1      1       0       0       0       0       0       0       0       0 
        CrosslaneWait      0      0      0      0      0      0      1      1      1       0       0       0       0       0       0       0       0 
        ForceStoreSC1      0      0      0      0      0      0      1      1      0       0       0       0       0       0       0       0       0 
             HasAccCD      0      0      0      0      0      1      1      1      1       0       0       0       0       0       0       0       0 
           HasEccHalf      0      0      0      1      1      1      1      1      1       0       0       0       0       0       0       0       0 
            HasWave32      0      0      0      0      0      0      0      0      0       1       1       1       1       1       1       1       1 
           InstRename      0      0      0      0      0      0      0      0      0       0       0       0       0       0       1       1       1 
        SeparateVscnt      0      0      0      0      0      0      0      0      0       1       1       1       1       1       1       1       1 
             VgprBank      0      0      0      0      0      0      0      0      0       1       1       1       1       1       1       1       1 
     Waitcnt0Disabled      0      0      0      0      1      1      1      1      1       0       0       0       0       0       0       0       0 
# CodeObjectVersion from TensileCreateLibrary: default
# CxxCompiler       from TensileCreateLibrary: hipcc
# Architecture      from TensileCreateLibrary: gfx803
# LibraryFormat     from TensileCreateLibrary: msgpack
# LibraryLogicFiles:
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/r9nano/r9nano_Cijk_Ailk_Bljk_DB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/r9nano/r9nano_Cijk_Ailk_Bjlk_DB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/r9nano/r9nano_Cijk_Alik_Bjlk_DB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/r9nano/r9nano_Cijk_Ailk_Bljk_SB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/r9nano/r9nano_Cijk_Alik_Bljk_DB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/r9nano/r9nano_Cijk_Ailk_Bjlk_SB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/r9nano/r9nano_Cijk_Alik_Bljk_SB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/r9nano/r9nano_Cijk_Alik_Bjlk_SB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_BjlkC_CB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_CB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_BSS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_4xi8II_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_BjlkC_ZB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_BSS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_4xi8II_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_BjlkC_CB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_CB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_BjlkC_ZB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_HSS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_HB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_HHS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_HB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_BSS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_I8II_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_BBS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_ZB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_SB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_DB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_DB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_BSS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_Bljk_ZB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_DB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_HSS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_BBS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_BjlkC_CB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_ZB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_SB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_HHS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_SB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_CB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_4xi8II_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_4xi8II_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_CB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_DB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_HSS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_HHS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_HB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_HHS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_ZB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_I8II_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_BBS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_HB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_ZB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_Bjlk_CB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_DB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_BSS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_HSS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_HB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_Bljk_CB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_BBS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_DB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_HHS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_BjlkC_ZB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_CB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_BjlkC_ZB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_I8II_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_HB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_ZB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_HHS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_I8II_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_4xi8II_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_HB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_ZB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_I8II_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_BjlkC_ZB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_BjlkC_CB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_HHS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_HSS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_Bjlk_CB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_ZB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_SB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_BBS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_BjlkC_CB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_BjlkC_ZB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_HHS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_Bjlk_ZB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_Bljk_ZB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_BBS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_SB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_4xi8II_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_BBS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_SB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_DB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_CB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_I8II_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_BSS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_ZB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_DB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_Bljk_CB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_I8II_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_SB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_BSS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_4xi8II_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_I8II_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_HSS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_4xi8II_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_AlikC_Bjlk_ZB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_HSS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_BSS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bljk_BBS_BH.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_CB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_HB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bjlk_CB_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Ailk_Bjlk_HSS_BH_GB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_Bljk_SB.yaml
#   /build/source/library/src/blas3/Tensile/Logic/asm_full/hip/hip_Cijk_Alik_BjlkC_CB_GB.yaml
Reading logic files: Launching 16 threads for 116 tasks...
Reading logic files: Done.
^M[|                                                                        ]   1%^M[||                                                                       ]   3%^M[|||                                       >
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done (114.1s)
CMake Error in tensile/lib/python3.11/site-packages/Tensile/Source/lib/CMakeLists.txt:
  Imported target "hip::device" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_POLICY_DEFAULT_CMP0025


CMake Generate step failed.  Build files cannot be regenerated correctly.

I assume PR #3853 fixes it though correct?

@vcunat
Copy link
Member

vcunat commented Apr 22, 2024

Missing some digit(s) in the PR number? Anyway, I've noticed this and suspected that it was triggered by cmake upgrade from 3.28 to 3.29.

@nonetrix
Copy link
Contributor

Missing some digit(s) in the PR number? Anyway, I've noticed this and suspected that it was triggered by cmake upgrade from 3.28 to 3.29.

Oops yeah, must have done something weird with the mouse. My mouse has a really bad double clicking issue to be honest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build failure: torchWithRocm
9 participants