prmers: init at 4.15.35-alpha (#464328)

This commit is contained in:
Edward Tjörnhammar
2025-12-14 18:29:27 +00:00
committed by GitHub
+60
View File
@@ -0,0 +1,60 @@
{
curl,
fetchFromGitHub,
gmp,
lib,
ocl-icd,
opencl-headers,
stdenv,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "prmers";
version = "4.15.35-alpha";
src = fetchFromGitHub {
owner = "cherubrock-seb";
repo = "PrMers";
tag = "v${finalAttrs.version}";
hash = "sha256-LAbWyz1FT9Zza4gewgKeMvQt8rwkfBhHRWBGpN+DIXE=";
};
enableParallelBuilding = true;
buildInputs = [
curl
gmp
ocl-icd
opencl-headers
];
installPhase = ''
runHook preInstall
make install PREFIX=$out KERNEL_PATH=$out/bin/kernels
runHook postInstall
'';
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "-v";
meta = {
description = "GPU-accelerated Mersenne primality testing";
longDescription = ''
PrMers is a high-performance GPU application for LucasLehmer (LL), PRP, and P-1 testing of Mersenne numbers.
It uses OpenCL and integer NTT/IBDWT kernels and is built for long, reliable runs with checkpointing and PrimeNet submission.
'';
homepage = "https://github.com/cherubrock-seb/PrMers";
downloadPage = "https://github.com/cherubrock-seb/PrMers/releases/tag/v${finalAttrs.version}";
maintainers = with lib.maintainers; [ dstremur ];
license = lib.licenses.mit;
platforms = lib.platforms.linux;
mainProgram = "prmers";
};
})