Commit 8a5bbd0b authored by Emily's avatar Emily
Browse files

treewide: remove already‐obsolete CUDA version conditions

parent 82bd1798
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -44,10 +44,6 @@ stdenv.mkDerivation (finalAttrs: {
    shopt -s globstar
    for cmakelists in **/CMakeLists.*; do
      sed -i "s/OpenSSL::OpenSSL/OpenSSL::SSL/g" $cmakelists
      ${lib.optionalString (cudaPackages.cudaOlder "11.8") ''
        sed -i 's/-gencode=arch=compute_89,code=sm_89//g' $cmakelists
        sed -i 's/-gencode=arch=compute_90,code=sm_90//g' $cmakelists
      ''}
    done
  '';

+0 −6
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
  autoPatchelfHook,
  blas,
  cmake,
  cudaPackages_11 ? null,
  cudaPackages,
  cudaSupport ? config.cudaSupport,
  fetchurl,
@@ -158,11 +157,6 @@ stdenv.mkDerivation (finalAttrs: {
      cuda_cudart # cuda_runtime.h
      libcublas # cublas_v2.h
      libcusparse # cusparse.h
    ]
    ++ lists.optionals (cudaOlder "11.8") [
      cuda_nvprof # <cuda_profiler_api.h>
    ]
    ++ lists.optionals (cudaAtLeast "11.8") [
      cuda_profiler_api # <cuda_profiler_api.h>
    ]
  )
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ stdenv.mkDerivation (finalAttrs: {

  # Remove this once a release is made with
  # https://github.com/NVlabs/tiny-cuda-nn/commit/78a14fe8c292a69f54e6d0d47a09f52b777127e1
  postPatch = lib.optionals (cudaAtLeast "11.0") ''
  postPatch = ''
    substituteInPlace bindings/torch/setup.py --replace-fail \
      "-std=c++14" "-std=c++17"
  '';
+0 −1
Original line number Diff line number Diff line
@@ -194,7 +194,6 @@ effectiveStdenv.mkDerivation rec {
  meta = with lib; {
    description = "Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library";
    homepage = "https://github.com/dmlc/xgboost";
    broken = cudaSupport && cudaPackages.cudaOlder "11.4";
    license = licenses.asl20;
    mainProgram = "xgboost";
    platforms = platforms.unix;
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ in
      xorg.libXtst
    ]
    # NOTE(@connorbaker): Seems to be required only for aarch64-linux.
    ++ lib.optionals (stdenv.hostPlatform.isAarch64 && cudaAtLeast "11.8") [
    ++ lib.optionals stdenv.hostPlatform.isAarch64 [
      gst_all_1.gst-plugins-bad
    ];

Loading