17 examples = stdenv.mkDerivation {
18 pname = "amd-app-samples";
19 version = "2018-06-10";
21 src = fetchFromGitHub {
23 repo = "AMD_APP_samples";
24 rev = "54da6ca465634e78fc51fc25edf5840467ee2411";
25 hash = "sha256-qARQpUiYsamHbko/I1gPZE9pUGJ+3396Vk2n7ERSftA=";
44 # Example path is bin/x86_64/Release/cl/Reduction/Reduction
45 cp -r bin/*/*/*/*/* $out/bin/
50 cmakeFlags = [ "-DBUILD_CPP_CL=OFF" ];
53 description = "Samples from the AMD APP SDK (with OpenCRun support)";
54 homepage = "https://github.com/OpenCL/AMD_APP_samples";
55 license = licenses.bsd2;
56 platforms = platforms.linux;
57 maintainers = lib.teams.rocm.members;
63 name = "opencl-example";
64 testedPackage = "rocmPackages_5.clr";
72 nativeBuildInputs = [ examples ];
74 OCL_ICD_VENDORS = "${clr.icd}/etc/OpenCL/vendors";
77 # Examples load resources from current directory
79 echo OCL_ICD_VENDORS=$OCL_ICD_VENDORS
82 HelloWorld | grep HelloWorld
86 maintainers = teams.rocm.members;