This commit is contained in:
Rodrigo Arias 2024-04-25 17:38:24 +02:00
parent 466e50e511
commit 4d4dbe669c
3 changed files with 29 additions and 16 deletions

6
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,6 @@
build:ci:
stage: build
tags:
- nix
script:
- nix shell '.#bench6' 'jungle#bigotes' --command sh -c "test/run.sh"

View File

@ -9,25 +9,29 @@
targetMachine = jungle.outputs.nixosConfigurations.hut;
pkgs = targetMachine.pkgs;
in {
packages.x86_64-linux.default = pkgs.stdenv.mkDerivation rec {
pname = "bench6";
version = if self ? shortRev then self.shortRev else "dirty";
packages.x86_64-linux = rec {
default = bench6;
bench6 = pkgs.stdenv.mkDerivation rec {
pname = "bench6";
version = if self ? shortRev then self.shortRev else "dirty";
src = self.outPath;
src = self.outPath;
buildInputs = with pkgs; [
cmake
clangOmpss2
nanos6
nodes
nosv
mpi
tampi
];
buildInputs = with pkgs; [
bigotes
cmake
clangOmpss2
nanos6
nodes
nosv
mpi
tampi
];
enableParallelBuilding = false;
hardeningDisable = [ "all" ];
dontStrip = true;
enableParallelBuilding = false;
hardeningDisable = [ "all" ];
dontStrip = true;
};
};
};
}

3
test/run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
bigotes b6_heat_nanos6 -s 2048 -t 10 -b 64