forked from rarias/jungle
Use POCL_CACHE_DIR instead of writableHome...Hook
This commit is contained in:
parent
13f075e9e6
commit
aacfbbd4a1
@ -4,7 +4,6 @@
|
|||||||
opencl-headers,
|
opencl-headers,
|
||||||
pocl,
|
pocl,
|
||||||
clinfo,
|
clinfo,
|
||||||
writableTmpDirAsHomeHook,
|
|
||||||
runCommand,
|
runCommand,
|
||||||
lib,
|
lib,
|
||||||
}:
|
}:
|
||||||
@ -50,10 +49,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
clinfo
|
clinfo
|
||||||
finalAttrs.finalPackage
|
finalAttrs.finalPackage
|
||||||
pocl
|
pocl
|
||||||
writableTmpDirAsHomeHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
env.POCL_DEBUG = "error,warn";
|
env = {
|
||||||
|
POCL_DEBUG = "error,warn";
|
||||||
|
POCL_CACHE_DIR = "/build/pocl_cache";
|
||||||
|
};
|
||||||
|
|
||||||
requiredSystemFeatures = [ "sys-devices" ];
|
requiredSystemFeatures = [ "sys-devices" ];
|
||||||
}
|
}
|
||||||
@ -84,10 +85,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
{
|
{
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
finalAttrs.finalPackage
|
finalAttrs.finalPackage
|
||||||
writableTmpDirAsHomeHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
env.POCL_DEBUG = "error,warn";
|
env = {
|
||||||
|
POCL_DEBUG = "error,warn";
|
||||||
|
POCL_CACHE_DIR = "/build/pocl_cache";
|
||||||
|
};
|
||||||
|
|
||||||
requiredSystemFeatures = [ "sys-devices" ];
|
requiredSystemFeatures = [ "sys-devices" ];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
runCommand,
|
runCommand,
|
||||||
pocl,
|
pocl,
|
||||||
clinfo,
|
clinfo,
|
||||||
writableTmpDirAsHomeHook,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
runCommand "clinfo-pocl"
|
runCommand "clinfo-pocl"
|
||||||
@ -10,12 +9,14 @@ runCommand "clinfo-pocl"
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
clinfo
|
clinfo
|
||||||
pocl
|
pocl
|
||||||
writableTmpDirAsHomeHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
requiredSystemFeatures = [ "sys-devices" ];
|
requiredSystemFeatures = [ "sys-devices" ];
|
||||||
|
|
||||||
env.POCL_DEBUG = "error,warn";
|
env = {
|
||||||
|
POCL_DEBUG = "error,warn";
|
||||||
|
POCL_CACHE_DIR = "/build/pocl_cache";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
echo $OCL_ICD_VENDORS
|
echo $OCL_ICD_VENDORS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user