Compare commits
3 Commits
227f216264
...
11a83adb54
Author | SHA1 | Date | |
---|---|---|---|
11a83adb54 | |||
5318a1d203 | |||
887784c4b6 |
@ -3,18 +3,34 @@
|
||||
outputs = { self, bscpkgs }:
|
||||
let
|
||||
nixpkgs = bscpkgs.inputs.nixpkgs;
|
||||
clusterOverlay = (final: prev: {
|
||||
# Use cluster llvm compiler repo
|
||||
clangOmpss2Unwrapped = prev.clangOmpss2Unwrapped.override {
|
||||
useGit = true;
|
||||
gitUrl = "ssh://git@bscpm04.bsc.es/ompss-2-at-cluster/llvm.git";
|
||||
gitCommit = "151c260ba834826c01855da0a41fc203ffe4d025";
|
||||
gitBranch = "cluster";
|
||||
};
|
||||
});
|
||||
pkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
overlays = [ bscpkgs.outputs.bscOverlay ];
|
||||
overlays = [
|
||||
# Apply bscpkgs to get our BSC custom packages
|
||||
bscpkgs.outputs.bscOverlay
|
||||
# And on top apply our local changes to customize for cluster
|
||||
clusterOverlay
|
||||
];
|
||||
};
|
||||
in {
|
||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||
pname = "devshell";
|
||||
#buildInputs = with pkgs; [
|
||||
# gcc # more packages here...
|
||||
#];
|
||||
buildInputs = with pkgs; [
|
||||
slurm.out slurm.dev gcc
|
||||
clangOmpss2
|
||||
nanos6
|
||||
];
|
||||
inputsFrom = with pkgs; [
|
||||
slurm nanos6
|
||||
nanos6
|
||||
];
|
||||
};
|
||||
};
|
||||
|
12
isabel/slurm/llvmTest.c
Normal file
12
isabel/slurm/llvmTest.c
Normal file
@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
#pragma oss task node(0)
|
||||
{
|
||||
printf("Tasking\n");
|
||||
}
|
||||
#pragma oss taskwait
|
||||
printf("Past the task\n");
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user