Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alheinecke opened this issue Jun 29, 2022 · 1 comment
Closed

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

alheinecke opened this issue Jun 29, 2022 · 1 comment

Comments

@alheinecke
Copy link

alheinecke commented Jun 29, 2022

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!

@alheinecke
Copy link
Author

alheinecke commented Jun 29, 2022

OK... I poked around with strace... seems like rlinks are not set, with: export LD_LIBRARY_PATH=/opt/intel-gpu/gmmlib/lib64/:/opt/intel-gpu/igc/lib64/:/opt/intel-gpu/neo/lib64/:$LD_LIBRARY_PATH
I'm now getting:

clDeviceQuery Starting...

1 OpenCL Platforms found

 CL_PLATFORM_NAME:      Intel(R) OpenCL HD Graphics
 CL_PLATFORM_VERSION:   OpenCL 3.0
OpenCL Device Info:

 1 devices found supporting OpenCL on: Intel(R) OpenCL HD Graphics

 ----------------------------------
 Device Intel(R) Iris(R) Xe Graphics [0x9a49]
 ---------------------------------
  CL_DEVICE_NAME:                       Intel(R) Iris(R) Xe Graphics [0x9a49]
  CL_DEVICE_VENDOR:                     Intel(R) Corporation
  CL_DRIVER_VERSION:                    22.27.0
  CL_DEVICE_TYPE:                       CL_DEVICE_TYPE_GPU
  CL_DEVICE_MAX_COMPUTE_UNITS:          80
  CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS:   3
  CL_DEVICE_MAX_WORK_ITEM_SIZES:        512 / 512 / 512
  CL_DEVICE_MAX_WORK_GROUP_SIZE:        512
  CL_DEVICE_MAX_CLOCK_FREQUENCY:        1300 MHz
  CL_DEVICE_ADDRESS_BITS:               64
  CL_DEVICE_MAX_MEM_ALLOC_SIZE:         4095 MByte
  CL_DEVICE_GLOBAL_MEM_SIZE:            51146 MByte
  CL_DEVICE_ERROR_CORRECTION_SUPPORT:   no
  CL_DEVICE_LOCAL_MEM_TYPE:             local
  CL_DEVICE_LOCAL_MEM_SIZE:             64 KByte
  CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:   4194296 KByte
  CL_DEVICE_QUEUE_PROPERTIES:           CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE
  CL_DEVICE_QUEUE_PROPERTIES:           CL_QUEUE_PROFILING_ENABLE
  CL_DEVICE_IMAGE_SUPPORT:              1
  CL_DEVICE_MAX_READ_IMAGE_ARGS:        128
  CL_DEVICE_MAX_WRITE_IMAGE_ARGS:       128

  CL_DEVICE_IMAGE <dim>                 2D_MAX_WIDTH     16384
                                        2D_MAX_HEIGHT    16384
                                        3D_MAX_WIDTH     2048
                                        3D_MAX_HEIGHT    2048
                                        3D_MAX_DEPTH     2048
  CL_DEVICE_PREFERRED_VECTOR_WIDTH_<t>  CHAR 16, SHORT 8, INT 4, FLOAT 1, DOUBLE 1


clDeviceQuery, Platform Name = Intel(R) OpenCL HD Graphics, Platform Version = OpenCL 3.0 , NumDevs = 1, Device = Intel(R) Iris(R) Xe Graphics [0x9a49]
`
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant