Unverified Commit 8570db73 authored by Luna Nova's avatar Luna Nova Committed by GitHub
Browse files

rocmPackages.rocprof-compute-viewer: init at 0.1.6 (#507986)

parents c5f281d8 b3617563
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -88,6 +88,8 @@ let
        inherit (llvm) clang;
      };

      rocprof-compute-viewer = self.callPackage ./rocprof-compute-viewer { };

      rocprof-trace-decoder = self.callPackage ./rocprof-trace-decoder { };

      roctracer = self.callPackage ./roctracer { };
+53 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  ninja,
  nix-update-script,
  qt6,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "rocprof-compute-viewer";
  version = "0.1.6";

  src = fetchFromGitHub {
    owner = "ROCm";
    repo = "rocprof-compute-viewer";
    rev = finalAttrs.version;
    hash = "sha256-hjwqU5TxV4p2EjGy5haQfQqItVtYMI7i/VIfrKZvqhE=";
  };

  nativeBuildInputs = [
    cmake
    ninja
    qt6.wrapQtAppsHook
  ];

  buildInputs = [
    qt6.qtbase
  ];

  # tries to use qt_deploy_runtime_dependencies, but wrapQtAppsHook
  # handles that instead
  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail 'install(SCRIPT ''${deploy_script})' ""
  '';

  cmakeFlags = [
    (lib.cmakeFeature "QT_VERSION_MAJOR" "6")
    (lib.cmakeBool "RCV_DISABLE_OPENGL" true)
  ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Visualization tool for AMD GPU thread traces from rocprofv3 --att";
    homepage = "https://github.com/ROCm/rocprof-compute-viewer";
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    mainProgram = "rocprof-compute-viewer";
  };
})