mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
khronos-ocl-icd-loader: init at 6c03f8b
This commit is contained in:
parent
b52fb3b078
commit
4820d630bf
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 \
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user