From 9c21030dfd7cd93e6de66478877ffc528e60dc3f Mon Sep 17 00:00:00 2001 From: whispers Date: Wed, 2 Sep 2026 00:10:02 -0400 Subject: [PATCH] clmagma: drop clmagma appears to be untouched upstream for many years (since 2014 according to timestamps at https://icl.cs.utk.edu/projectsfiles/magma/cl). we have `magma` and other more recent packages from the same project, and since this appears to be unused in nixpkgs, let's remove it. --- pkgs/by-name/cl/clmagma/package.nix | 86 ----------------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 86 deletions(-) delete mode 100644 pkgs/by-name/cl/clmagma/package.nix diff --git a/pkgs/by-name/cl/clmagma/package.nix b/pkgs/by-name/cl/clmagma/package.nix deleted file mode 100644 index dbcbd91dc96f..000000000000 --- a/pkgs/by-name/cl/clmagma/package.nix +++ /dev/null @@ -1,86 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - gfortran, - opencl-headers, - clblas, - ocl-icd, - mkl, - intel-ocl, -}: - -let - incfile = builtins.toFile "make.inc.custom" '' - CC = g++ - FORT = gfortran - - ARCH = ar - ARCHFLAGS = cr - RANLIB = ranlib - - OPTS = -fPIC -O3 -DADD_ -Wall - FOPTS = -fPIC -O3 -DADD_ -Wall -x f95-cpp-input - F77OPTS = -fPIC -O3 -DADD_ -Wall - LDOPTS = -fPIC - - -include make.check-mkl - -include make.check-clblas - - # Gnu mkl is not available I guess? - #LIB = -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -lpthread -lm -fopenmp - LIB = -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lm -fopenmp - LIB += -lclBLAS -lOpenCL - - LIBDIR = -L$(MKLROOT)/lib/intel64 \ - -L$(MKLROOT)/../compiler/lib/intel64 \ - -L$(clBLAS)/lib64 - - INC = -I$(clBLAS)/include - #-I$(AMDAPP)/include - ''; -in -stdenv.mkDerivation rec { - pname = "clmagma"; - version = "1.3.0"; - src = fetchurl { - url = "https://icl.cs.utk.edu/projectsfiles/magma/cl/clmagma-${version}.tar.gz"; - sha256 = "1n27ny0xhwirw2ydn46pfcwy53gzia9zbam4irx44fd4d7f9ydv7"; - name = "clmagma-${version}.tar.gz"; - }; - - buildInputs = [ - gfortran - clblas - opencl-headers - ocl-icd - mkl - intel-ocl - ]; - - enableParallelBuilding = true; - - env = { - MKLROOT = mkl; - clBLAS = clblas; - - # Otherwise build looks for it in /run/opengl-driver/etc/OpenCL/vendors, - # which is not available. - OPENCL_VENDOR_PATH = "${intel-ocl}/etc/OpenCL/vendors"; - }; - - preBuild = '' - # By default it tries to use GPU, and thus fails for CPUs - sed -i "s/CL_DEVICE_TYPE_GPU/CL_DEVICE_TYPE_DEFAULT/" interface_opencl/clmagma_runtime.cpp - sed -i "s%/usr/local/clmagma%/$out%" Makefile.internal - cp ${incfile} make.inc - ''; - - meta = { - description = "Matrix Algebra on GPU and Multicore Architectures, OpenCL port"; - license = lib.licenses.bsd3; - homepage = "https://icl.cs.utk.edu/magma/index.html"; - platforms = lib.platforms.linux; - maintainers = with lib.maintainers; [ volhovm ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index f45807ca51d3..0b78ef8b2e8e 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -566,6 +566,7 @@ mapAliases { clipbuzz = throw "clipbuzz has been removed, as it does not build with supported Zig versions"; # Added 2025-08-09 clipgrab = throw "'clipgrab' has been removed, as it was unmaintained in nixpkgs since 2022 and depended on vulnerable qt5 webengine."; # Added 2026-02-11 clipit = throw "'clipit' has been removed as it is unmaintained upstream and broken"; # Added 2026-05-16 + clmagma = throw "'clmagma' has been removed as it was unmaintained upstream"; # Added 2026-09-02 clorinde = throw "'clorinde' has been merged into 'cornucopia'"; # Added 2026-06-03 cloudlogoffline = throw "cloudlogoffline has been removed"; # Added 2025-05-18 clucene_core = warnAlias "'clucene_core' has been renamed to 'clucene-core'" clucene-core; # Added 2026-01-12