xmr-stak: drop gcc6 requrement (and cuda support)

[ 86%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/minethd.cpp.o
    nvcc fatal   : Unsupported gpu architecture 'compute_30'
    CMake Error at xmrstak_cuda_backend_generated_cuda_extra.cu.o.Release.cmake:220 (message):
      Error generating
      /build/source/build/CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/./xmrstak_cuda_backend_generated_cuda_extra.cu.o
    nvcc fatal   : Unsupported gpu architecture 'compute_30'
    make[2]: *** [CMakeFiles/xmrstak_cuda_backend.dir/build.make:84: CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_extra.cu.o] Error 1

CUDA support is broken for a while. Let's drop it along with gcc6 requirement.
This commit is contained in:
Sergei Trofimovich 2022-07-04 10:27:24 +01:00
parent d335ada6fe
commit a5ce71d4e8
2 changed files with 4 additions and 12 deletions

View file

@ -1,16 +1,11 @@
{ stdenv, stdenvGcc6, lib
, fetchFromGitHub, cmake, libmicrohttpd_0_9_70, openssl
, opencl-headers, ocl-icd, hwloc, cudatoolkit
, opencl-headers, ocl-icd, hwloc
, devDonationLevel ? "0.0"
, cudaSupport ? false
, openclSupport ? true
}:
let
stdenv' = if cudaSupport then stdenvGcc6 else stdenv;
in
stdenv'.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "xmr-stak";
version = "2.10.8";
@ -23,12 +18,11 @@ stdenv'.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-O3";
cmakeFlags = lib.optional (!cudaSupport) "-DCUDA_ENABLE=OFF"
cmakeFlags = [ "-DCUDA_ENABLE=OFF" ]
++ lib.optional (!openclSupport) "-DOpenCL_ENABLE=OFF";
nativeBuildInputs = [ cmake ];
buildInputs = [ libmicrohttpd_0_9_70 openssl hwloc ]
++ lib.optional cudaSupport cudatoolkit
++ lib.optionals openclSupport [ opencl-headers ocl-icd ];
postPatch = ''

View file

@ -28556,9 +28556,7 @@ with pkgs;
mod-distortion = callPackage ../applications/audio/mod-distortion { };
xmr-stak = callPackage ../applications/misc/xmr-stak {
stdenvGcc6 = gcc6Stdenv;
};
xmr-stak = callPackage ../applications/misc/xmr-stak { };
xmrig = callPackage ../applications/misc/xmrig { };