16 examples = stdenv.mkDerivation {
17 pname = "amd-app-samples";
18 version = "2018-06-10";
20 src = fetchFromGitHub {
22 repo = "AMD_APP_samples";
23 rev = "54da6ca465634e78fc51fc25edf5840467ee2411";
24 hash = "sha256-qARQpUiYsamHbko/I1gPZE9pUGJ+3396Vk2n7ERSftA=";
27 nativeBuildInputs = [ cmake pkg-config ];
29 buildInputs = [ glew libglut opencl-headers ocl-icd ];
35 # Example path is bin/x86_64/Release/cl/Reduction/Reduction
36 cp -r bin/*/*/*/*/* $out/bin/
41 cmakeFlags = [ "-DBUILD_CPP_CL=OFF" ];
44 description = "Samples from the AMD APP SDK (with OpenCRun support)";
45 homepage = "https://github.com/OpenCL/AMD_APP_samples";
46 license = licenses.bsd2;
47 platforms = platforms.linux;
48 maintainers = lib.teams.rocm.members;
54 name = "opencl-example";
55 testedPackage = "rocmPackages_5.clr";
57 sandboxPaths = [ "/sys" "/dev/dri" "/dev/kfd" ];
59 nativeBuildInputs = [ examples ];
61 OCL_ICD_VENDORS = "${clr.icd}/etc/OpenCL/vendors";
64 # Examples load resources from current directory
66 echo OCL_ICD_VENDORS=$OCL_ICD_VENDORS
69 HelloWorld | grep HelloWorld
73 maintainers = teams.rocm.members;