Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intel Neo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
dkasak
n00b
n00b


Joined: 10 Feb 2012
Posts: 61

PostPosted: Mon Jul 09, 2018 4:23 am    Post subject: Intel Neo Reply with quote

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
View user's profile Send private message
ryszardzonk
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 225
Location: Rzeszów, POLAND

PostPosted: Mon Aug 20, 2018 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
nikulinpi
n00b
n00b


Joined: 12 Jan 2007
Posts: 37

PostPosted: Thu Apr 18, 2019 1:51 pm    Post subject: Reply with quote

Just found a working ebuild on this repo https://github.com/dev-zero/gentoo/tree/master/dev-libs/neo
Back to top
View user's profile Send private message
waflessnet
n00b
n00b


Joined: 11 Dec 2017
Posts: 9
Location: chile

PostPosted: Sun May 12, 2019 5:49 am    Post subject: Reply with quote

nikulinpi wrote:
Just found a working ebuild on this repo https://github.com/dev-zero/gentoo/tree/master/dev-libs/neo

oh Thanks !
_________________
Más vale usar pantunflas que alfombrar al mundo | buda
Back to top
View user's profile Send private message
reppk
n00b
n00b


Joined: 17 Mar 2016
Posts: 25

PostPosted: Wed Jun 12, 2019 12:50 am    Post subject: Reply with quote

Should I select "intel" in eselect after intel-neo installed?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum