Update 'release.nix'

keldu 2023-02-15 17:43:13 +01:00
parent f6acd48252
commit a00be4179f
1 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,8 @@
{ ... }:
{ nixpkgs ? <nixpkgs>
, ginkgo ? {outPath = ./ginkgo;}
}:
let
pkgs = (import <nixpkgs>{
pkgs = (import nixpkgs{
config = {
allowUnfree = true;
};
@ -10,6 +12,7 @@ in
ginkgo-project = {
ginkgo = {
reference = pkgs.callPackage ./derivation.nix {
inherit pkgs;
extraCmakeFlags = [
"-DGINKGO_CUDA=OFF"
"-DGINKGO_BUILD_BENCHMARKS=OFF"
@ -18,6 +21,7 @@ in
];
};
cuda = pkgs.callPackage ./derivation.nix {
inherit pkgs;
extraCmakeFlags = [
"-DGINKGO_CUDA=ON"
"-DGINKGO_BUILD_BENCHMARKS=OFF"
@ -29,6 +33,7 @@ in
];
};
hip = pkgs.callPackage ./derivation.nix {
inherit pkgs;
cppCompiler = pkgs.llvmPackages_rocm.clang;
extraCmakeFlags = [
"-DGINKGO_CUDA=OFF"