Skip to content

Commit

Permalink
intel-compute-runtime: Fix to use OCL_ICD_VENDORDIR cmake variable (S…
Browse files Browse the repository at this point in the history
…ynoCommunity#6253)

* intel-compute-runtime: Fix to use OCL_ICD_VENDORDIR cmake variable

* intel-compute-runtime: No need for using DESTDIR with intel.icd fix
  • Loading branch information
th0ma7 authored Oct 5, 2024
1 parent 099c5dd commit 19cdf3e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cross/intel-compute-runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ COMMENT = The Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL
LICENSE = MIT license

POST_EXTRACT_TARGET = intel-compute-runtime_post_extract_target
POST_INSTALL_TARGET = intel-compute-runtime_post_install_target
CMAKE_USE_NINJA = 0
CMAKE_USE_DESTDIR = 1

DEPENDS = cross/intel-gmmlib
DEPENDS += cross/intel-graphics-compiler
Expand All @@ -31,6 +29,7 @@ BUILD_DEPENDS += cross/Khronos-SPIRV-Headers
CMAKE_ARGS += -DIGC_DIR=$(STAGING_INSTALL_PREFIX)
CMAKE_ARGS += -DNEO_DISABLE_LD_GOLD:BOOL='ON'
CMAKE_ARGS += -DSKIP_UNIT_TESTS=1
CMAKE_ARGS += -DOCL_ICD_VENDORDIR=$(INSTALL_PREFIX)/etc/OpenCL/vendors/

include ../../mk/spksrc.cross-cmake.mk

Expand All @@ -39,8 +38,3 @@ ENV += LD_LIBRARY_PATH=$(STAGING_INSTALL_PREFIX)/lib
.PHONY: intel-compute-runtime_post_extract_target
intel-compute-runtime_post_extract_target:
@cd $(WORK_DIR) && ln -s $(PKG_DIR) $(PKG_NAME)

.PHONY: intel-compute-runtime_post_install_target
intel-compute-runtime_post_install_target:
@install -m 755 -d $(STAGING_INSTALL_PREFIX)/etc/OpenCL/vendors/
@install -m 644 $(INSTALL_DIR)/etc/OpenCL/vendors/intel.icd $(STAGING_INSTALL_PREFIX)/etc/OpenCL/vendors/

0 comments on commit 19cdf3e

Please sign in to comment.