View previous topic :: View next topic |
Author |
Message |
dkasak n00b
Joined: 10 Feb 2012 Posts: 61
|
Posted: Mon Jul 09, 2018 4:23 am Post subject: Intel Neo |
|
|
Has anyone tried out the Intel Neo stack for OpenCL? I've tried their older beignet with boinc, but haven't been able to get anything working. Was hoping Neo would do better ... but don't want to break my system unnecessarily |
|
Back to top |
|
|
ryszardzonk Apprentice
Joined: 18 Dec 2003 Posts: 225 Location: Rzeszów, POLAND
|
Posted: Mon Aug 20, 2018 5:46 pm Post subject: |
|
|
I actually tried it now hence I found out on phoronix there is such an alternative, but I did not get anywhere with it as it likely requires changes to the CMakeLists.txt as its build instructions expect llvm/clang dependencies to be located within the source. I am not all that familiar with cmake configure syntax so I failed at my attempt of trying external libs, but maybe someone will pick it up where I left it and finish it up. It is based on beignet ebuild
Code: | # Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
CMAKE_BUILD_TYPE="Release"
inherit cmake-multilib flag-o-matic git-r3 llvm toolchain-funcs
DESCRIPTION="Intel Graphics Compiler for OpenCL"
HOMEPAGE="https://github.com/intel/intel-graphics-compiler"
EGIT_REPO_URI="https://github.com/intel/intel-graphics-compiler.git"
LICENSE="MIT"
SLOT="0"
IUSE=""
KEYWORDS=""
COMMON="media-libs/mesa
sys-devel/clang:=
sys-devel/llvm:=
>=x11-libs/libdrm-2.4.70[video_cards_intel]
x11-libs/libXext
x11-libs/libXfixes"
RDEPEND="${COMMON}
app-eselect/eselect-opencl"
DEPEND="${COMMON}
virtual/pkgconfig"
DOCS=( README.md )
#set(IGC_BUILD__IGC_SRC_DIR "${IGC_SOURCE_DIR}")
#set(IGC_BUILD__GFX_DEV_SRC_DIR "${IGC_SOURCE_DIR}/..")
#set(IGC_BUILD__GFX_DEV_TOOLS_DIR "${IGC_SOURCE_DIR}/../../Tools")
multilib_src_configure() {
VENDOR_DIR="/usr/$(get_libdir)/OpenCL/vendors/${PN}"
local mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="${VENDOR_DIR}"
-DLLVM_LIBRARY_DIR="$(llvm-config --libdir)"
-DLLVM_INCLUDE_DIRS="$(llvm-config --includedir)"
-DIGC_BUILD__GFX_OCL_DIR="/usr/include/"
)
cmake-utils_src_configure
}
multilib_src_install() {
VENDOR_DIR="/usr/$(get_libdir)/OpenCL/vendors/${PN}"
cmake-utils_src_install
insinto /etc/OpenCL/vendors/
echo "${VENDOR_DIR}/lib/${PN}/libcl.so" > "${PN}-${ABI}.icd" || die "Failed to generate ICD file"
doins "${PN}-${ABI}.icd"
dosym "lib/${PN}/libcl.so" "${VENDOR_DIR}"/libOpenCL.so.1
dosym "lib/${PN}/libcl.so" "${VENDOR_DIR}"/libOpenCL.so
dosym "lib/${PN}/libcl.so" "${VENDOR_DIR}"/libcl.so.1
dosym "lib/${PN}/libcl.so" "${VENDOR_DIR}"/libcl.so
} |
_________________ Sky is not the limit... |
|
Back to top |
|
|
nikulinpi n00b
Joined: 12 Jan 2007 Posts: 37
|
|
Back to top |
|
|
waflessnet n00b
Joined: 11 Dec 2017 Posts: 9 Location: chile
|
Posted: Sun May 12, 2019 5:49 am Post subject: |
|
|
oh Thanks ! _________________ Más vale usar pantunflas que alfombrar al mundo | buda |
|
Back to top |
|
|
reppk n00b
Joined: 17 Mar 2016 Posts: 25
|
Posted: Wed Jun 12, 2019 12:50 am Post subject: |
|
|
Should I select "intel" in eselect after intel-neo installed? |
|
Back to top |
|
|
|