diff --git a/pkgs/development/python-modules/libgpuarray/default.nix b/pkgs/development/python-modules/libgpuarray/default.nix deleted file mode 100644 index 751d9b2f706d9..0000000000000 --- a/pkgs/development/python-modules/libgpuarray/default.nix +++ /dev/null @@ -1,94 +0,0 @@ -{ - stdenv, - lib, - addDriverRunpath, - buildPythonPackage, - fetchFromGitHub, - cmake, - cython_0, - numpy, - six, - nose, - mako, - config, - cudaSupport ? config.cudaSupport, - cudaPackages ? { }, - openclSupport ? true, - ocl-icd, - clblas, -}: - -buildPythonPackage rec { - pname = "libgpuarray"; - version = "0.7.6"; - format = "setuptools"; - - src = fetchFromGitHub { - owner = "Theano"; - repo = "libgpuarray"; - rev = "v${version}"; - sha256 = "0ksil18c9ign4xrv5k323flhvdy6wdxh8szdd3nivv31jc3zsdri"; - }; - - # requires a GPU - doCheck = false; - - configurePhase = "cmakeConfigurePhase"; - - libraryPath = lib.makeLibraryPath ( - lib.optionals cudaSupport ( - with cudaPackages; - [ - cudatoolkit.lib - cudatoolkit.out - ] - ) - ++ lib.optionals openclSupport ([ clblas ] ++ lib.optional (!stdenv.isDarwin) ocl-icd) - ); - - preBuild = '' - make -j$NIX_BUILD_CORES - make install - - export NIX_CFLAGS_COMPILE="-L $out/lib -I $out/include $NIX_CFLAGS_COMPILE" - - cd .. - ''; - - postFixup = - '' - rm $out/lib/libgpuarray-static.a - '' - + lib.optionalString (!stdenv.isDarwin) '' - function fixRunPath { - p=$(patchelf --print-rpath $1) - patchelf --set-rpath "$p:$libraryPath" $1 - } - - fixRunPath $out/lib/libgpuarray.so - '' - + lib.optionalString cudaSupport '' - addDriverRunpath $out/lib/libgpuarray.so - ''; - - propagatedBuildInputs = [ - numpy - six - mako - ]; - - nativeBuildInputs = [ - cmake - cython_0 - ] ++ lib.optionals cudaSupport [ addDriverRunpath ]; - - buildInputs = [ nose ]; - - meta = with lib; { - homepage = "https://github.com/Theano/libgpuarray"; - description = "Library to manipulate tensors on GPU"; - license = licenses.free; - maintainers = with maintainers; [ artuuge ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 385a851fa1476..8df5b78223965 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -290,6 +290,7 @@ mapAliases ({ lazy_imports = lazy-imports; # added 2023-10-13 ledger_agent = ledger-agent; # Added 2024-01-07 lektor = throw "lektor has been promoted to a top-level attribute name: `pkgs.lektor`"; # added 2023-08-01 + libgpuarray = throw "libgpuarray has been removed, as it was unmaintained."; # added 2024-08-03 line_profiler = line-profiler; # added 2023-11-04 linear_operator = linear-operator; # added 2024-01-07 livestreamer = throw "'livestreamer' has been removed, as it unmaintained. A currently maintained fork is 'streamlink'."; # added 2023-11-14 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fe221d6cede97..9965c01c53e94 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6870,11 +6870,6 @@ self: super: with self; { inherit (pkgs) libgpiod; }; - libgpuarray = callPackage ../development/python-modules/libgpuarray { - clblas = pkgs.clblas.override { inherit (self) boost; }; - inherit (pkgs.config) cudaSupport; - }; - libgravatar = callPackage ../development/python-modules/libgravatar { }; libiio = (toPythonModule (pkgs.libiio.override { diff --git a/pkgs/top-level/release-cuda.nix b/pkgs/top-level/release-cuda.nix index d5614c55b98de..d8bbbbad4ce1d 100644 --- a/pkgs/top-level/release-cuda.nix +++ b/pkgs/top-level/release-cuda.nix @@ -127,7 +127,6 @@ let jax = linux; Keras = linux; kornia = linux; - libgpuarray = linux; mmcv = linux; mxnet = linux; numpy = linux; # Only affected by MKL?