Skip to content

Unable to run simple test on Tiger Lake on Fedora 35 #549

@alheinecke

Description

@alheinecke

CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
OS: Fedora 35, Linux 5.17.13-200.fc35.x86_64 #1 SMP PREEMPT Mon Jun 6 14:38:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

dnf install flex bison zlib-devel cmake ocl-icd ocl-icd-devel

mkdir /opt/intel-gpu
chown -R USERNAME /opt/intel-gpu
chgrp -R USERNAME /opt/intel-gpu

#build igc
mkdir build_igc && cd build_igc
git clone https://github.com/intel/vc-intrinsics vc-intrinsics
git clone -b llvmorg-11.1.0 https://github.com/llvm/llvm-project llvm-project
git clone -b ocl-open-110 https://github.com/intel/opencl-clang llvm-project/llvm/projects/opencl-clang
git clone -b llvm_release_110 https://github.com/KhronosGroup/SPIRV-LLVM-Translator llvm-project/llvm/projects/llvm-spirv
git clone https://github.com/KhronosGroup/SPIRV-Tools.git SPIRV-Tools
git clone https://github.com/KhronosGroup/SPIRV-Headers.git SPIRV-Headers
git clone https://github.com/intel/intel-graphics-compiler igc
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/intel-gpu/igc/ ../igc
make -j`nproc`
make install
cd ../../

#build gmmlib
mkdir build_gmmlib && cd build_gmmlib
git clone https://github.com/intel/gmmlib gmmlib
cd gmmlib
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/intel-gpu/gmmlib/ -DCMAKE_BUILD_TYPE=Release -DARCH=64 ..
make -j`nproc`
make install
cd ../../../

#build neo
mkdir build_neo && cd build_neo
git clone https://github.com/intel/compute-runtime neo
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/intel-gpu/neo/ -DCMAKE_BUILD_TYPE=Release -DNEO_SKIP_UNIT_TESTS=1 -DGMM_DIR=/opt/intel-gpu/gmmlib/ -DIGC_DIR=/opt/intel-gpu/igc/ ../neo
make -j`nproc`
sudo make install
cd ../..

ls -liha /dev/dri/
total 0
459 drwxr-xr-x  3 root root        100 Jun 28 15:24 .
  1 drwxr-xr-x 20 root root       4.1K Jun 28 15:26 ..
541 drwxr-xr-x  2 root root         80 Jun 28 15:24 by-path
461 crw-rw----  1 root video  226,   0 Jun 28 15:25 card0
460 crw-rw-rw-  1 root render 226, 128 Jun 28 15:24 renderD128

sudo usermod -a -G render USERNAME
sudo usermod -a -G video USERNAME

wget https://gist.githubusercontent.com/tserj/ed03e874d288be2a485089feed5ac08f/raw/1958327d253cd75b6982235d1da85ba3ad5c0337/clDeviceQuery.cpp
g++ clDeviceQuery.cpp -lOpenCL

[build_intelgpu]$ ./a.out
clDeviceQuery Starting...

 Error -1001 in clGetPlatformIDs Call!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions