khronos-ocl-icd-loader: init at 6c03f8b

This commit is contained in:
David Wood 2019-10-04 13:45:26 +01:00
parent b52fb3b078
commit 4820d630bf
No known key found for this signature in database
GPG Key ID: 2592E76C87381FD9
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub, opencl-clhpp, cmake, withTracing ? false }:
stdenv.mkDerivation rec {
name = "khronos-ocl-icd-loader-${version}";
version = "6c03f8b";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-ICD-Loader";
rev = "6c03f8b58fafd9dd693eaac826749a5cfad515f8";
sha256 = "00icrlc00dpc87prbd2j1350igi9pbgkz27hc3rf73s5994yn86a";
};
patches = stdenv.lib.lists.optional withTracing ./tracing.patch;
nativeBuildInputs = [ cmake ];
buildInputs = [ opencl-clhpp ];
meta = with stdenv.lib; {
description = "Offical Khronos OpenCL ICD Loader";
homepage = https://github.com/KhronosGroup/OpenCL-ICD-Loader;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ davidtwco ];
};
}

View File

@ -0,0 +1,13 @@
diff --git a/loader/icd.h b/loader/icd.h
index a1b6969..cf4e272 100644
--- a/loader/icd.h
+++ b/loader/icd.h
@@ -122,7 +122,7 @@ void khrIcdContextPropertiesGetPlatform(
cl_platform_id *outPlatform);
// internal tracing macros
-#if 0
+#if 1
#include <stdio.h>
#define KHR_ICD_TRACE(...) \
do \

View File

@ -9787,6 +9787,8 @@ in
kind = callPackage ../development/tools/kind { };
khronos-ocl-icd-loader = callPackage ../development/libraries/khronos-ocl-icd-loader { };
kube-aws = callPackage ../development/tools/kube-aws { };
kubectx = callPackage ../development/tools/kubectx { };