1 -- todo: add Apple OpenCL environment vars
\r
3 function findOpenCL_AMD()
\r
4 local amdopenclpath = os.getenv("AMDAPPSDKROOT")
\r
5 if (amdopenclpath) then
\r
11 function findOpenCL_NVIDIA()
\r
12 local nvidiaopenclpath = os.getenv("CUDA_PATH")
\r
13 if (nvidiaopenclpath) then
\r
19 function findOpenCL_Intel()
\r
20 local intelopenclpath = os.getenv("INTELOCLSDKROOT")
\r
21 if (intelopenclpath) then
\r
27 function initOpenCL_AMD()
\r
29 local amdopenclpath = os.getenv("AMDAPPSDKROOT")
\r
30 if (amdopenclpath) then
\r
31 defines { "ADL_ENABLE_CL" , "CL_PLATFORM_AMD"}
\r
33 "$(AMDAPPSDKROOT)/include"
\r
36 libdirs {"$(AMDAPPSDKROOT)/lib/x86"}
\r
38 libdirs {"$(AMDAPPSDKROOT)/lib/x86_64"}
\r
47 function initOpenCL_NVIDIA()
\r
49 local nvidiaopenclpath = os.getenv("CUDA_PATH")
\r
50 if (nvidiaopenclpath) then
\r
51 defines { "ADL_ENABLE_CL" , "CL_PLATFORM_NVIDIA"}
\r
53 "$(CUDA_PATH)/include"
\r
56 libdirs {"$(CUDA_PATH)/lib/Win32"}
\r
58 libdirs {"$(CUDA_PATH)/lib/x64"}
\r
66 function initOpenCL_Intel()
\r
68 local intelopenclpath = os.getenv("INTELOCLSDKROOT")
\r
69 if (intelopenclpath) then
\r
70 defines { "ADL_ENABLE_CL" , "CL_PLATFORM_INTEL"}
\r
72 "$(INTELOCLSDKROOT)/include"
\r
75 libdirs {"$(INTELOCLSDKROOT)/lib/x86"}
\r
77 libdirs {"$(INTELOCLSDKROOT)/lib/x64"}
\r