Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:cabelo:intel
ocl-icd
n_UsrShare.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File n_UsrShare.patch of Package ocl-icd
Common subdirectories: ocl-icd-2.2.12.orig/m4 and ocl-icd-2.2.12/m4 diff -u -p ocl-icd-2.2.12.orig/ocl_icd_loader.c ocl-icd-2.2.12/ocl_icd_loader.c --- ocl-icd-2.2.12.orig/ocl_icd_loader.c 2020-08-22 18:35:11.229578000 +0200 +++ ocl-icd-2.2.12/ocl_icd_loader.c 2020-08-22 20:31:52.943988000 +0200 @@ -583,8 +583,15 @@ static void __initClIcd( void ) { const char* dir_path=getenv("OCL_ICD_VENDORS"); const char* vendor_path=getenv("OPENCL_VENDOR_PATH"); if (! vendor_path || vendor_path[0]==0) { + struct stat buf; + int ret; vendor_path=ETC_OPENCL_VENDORS; debug(D_DUMP, "OPENCL_VENDOR_PATH unset or empty. Using hard-coded path '%s'", vendor_path); + ret=stat(vendor_path, &buf); + if (ret != 0) { + debug(D_WARN, "Cannot stat '%s'. Trying /usr/share/OpenCL/vendors", vendor_path); + vendor_path="/usr/share/OpenCL/vendors"; + } } else { debug(D_DUMP, "OPENCL_VENDOR_PATH set to '%s', using it", vendor_path); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor