don't use the vendor OpenCL sdks (commented out in 'findOpenCL.lua' file), just use clew

This commit is contained in:
erwincoumans
2014-01-30 06:05:34 -08:00
parent 50c61b0d11
commit 2901d4682e

View File

@@ -4,43 +4,43 @@
end end
function findOpenCL_Apple() function findOpenCL_Apple()
if os.is("macosx") then -- if os.is("macosx") then
return true -- return true
else -- else
return false return false
end -- end
end end
function findOpenCL_AMD() function findOpenCL_AMD()
local amdopenclpath = os.getenv("AMDAPPSDKROOT") -- local amdopenclpath = os.getenv("AMDAPPSDKROOT")
if (amdopenclpath) then -- if (amdopenclpath) then
return true -- return true
end -- end
return false return false
end end
function findOpenCL_NVIDIA() function findOpenCL_NVIDIA()
local nvidiaopenclpath = os.getenv("CUDA_PATH") -- local nvidiaopenclpath = os.getenv("CUDA_PATH")
if (nvidiaopenclpath) then -- if (nvidiaopenclpath) then
return true -- return true
end -- end
return false return false
end end
function findOpenCL_Intel() function findOpenCL_Intel()
if os.is("Windows") then -- if os.is("Windows") then
local intelopenclpath = os.getenv("INTELOCLSDKROOT") -- local intelopenclpath = os.getenv("INTELOCLSDKROOT")
if (intelopenclpath) then -- if (intelopenclpath) then
return true -- return true
end -- end
end -- end
if os.is("Linux") then -- if os.is("Linux") then
local intelsdk = io.open("/usr/include/CL/opencl.h","r") -- local intelsdk = io.open("/usr/include/CL/opencl.h","r")
if (intelsdk) then -- if (intelsdk) then
return true; -- return true;
end -- end
end -- end
return false return false
end end