anchor.diff:      ninja
     ] ++ lib.optionals cudaSupport [ cudatoolkit_joined ];
   
  -  buildInputs = [ blas ]
  +  buildInputs = [ blas blas.provider dnnl ]
       ++ lib.optionals cudaSupport [ cudnn magma nccl ]
       ++ lib.optionals stdenv.isLinux [ numactl ];
   
  
positive.code: 
    BUILD_NAMEDTENSOR = true;
    BUILD_DOCS = buildDocs;
    USE_MKLDNN = mklDnnSupport;
    preBuild = ''
      export MAX_JOBS=$NIX_BUILD_CORES
      ${python.interpreter} setup.py build --cmake-only
  
negative.code: 
    checkInputs = [ hypothesis ninja psutil ];
  
    # Tests take a long time and may be flaky, so just sanity-check imports
    doCheck = false;
    pythonImportsCheck = [
      "torch"
    ];
  
    checkPhase = with lib.versions; with lib.strings; concatStringsSep " " [
      cudaStubEnv
      "${python.interpreter} test/run_test.py"
      "--exclude"
  