Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Enable Comet Lake support #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Enable Comet Lake support #20

wants to merge 3 commits into from

Conversation

rcombs
Copy link

@rcombs rcombs commented Nov 23, 2020

Mimicking 7e181af

Includes all PCI IDs supported by the kernel driver.

The drm-intel tree doesn't distinguish between Y/H/W IDs for CML, so line codes for IDs that don't correspond to anything on ARK are guesses.

I don't have a CML device on hand to test on, so all I can verify is that it builds.

Mimicking 7e181af

Includes all PCI IDs supported by the kernel driver.

The drm-intel tree doesn't distinguish between Y/H/W IDs for CML,
so line codes for IDs that don't correspond to anything on ARK are guesses.
@syadnom
Copy link

syadnom commented Nov 24, 2020

Can you provide any guidance on how to build this? The original has some very dated llvm dependancies. I've pulled this down and tried to build against llvm and clang 10 but make dies at about 13%
"In file included from /root/a/beignet/build/backend/src/libocl/src/ocl_sync.cl:19:
/root/a/beignet/build/backend/src/libocl//usr/local/lib/beignet//include/ocl_misc.h:319:2: error: typedef redefinition with different types ('struct intel_sub_group_avc_ime_payload_t' vs 'intel_sub_group_avc_ime_payload_t')
}intel_sub_group_avc_ime_payload_t;
"
(ubuntu 20.04 with llvm/clang installed from repos)

@rcombs
Copy link
Author

rcombs commented Nov 24, 2020

on Ubuntu 20.04 you can run this:

sudo apt install cmake pkg-config python ocl-icd-dev libegl1-mesa-dev ocl-icd-opencl-dev libdrm-dev libxfixes-dev libxext-dev llvm-7-dev clang-7 libclang-7-dev libtinfo-dev libedit-dev zlib1g-dev
mkdir build
cd build
cmake -DLLVM_INSTALL_DIR=/usr/lib/llvm-7/bin ..
make -j8

@syadnom
Copy link

syadnom commented Nov 24, 2020

I've tried that, CMake is giving me errors, one is saying incompatible llvm version required 3.3

cmake -DLLVM_INSTALL_DIR=/usr/lib/llvm-7/bin ..
-- Building mode: RelWithDebInfo
-- LLVM llvm-config found at: /usr/bin/llvm-config
CMake Error at CMake/FindLLVM.cmake:30 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:100 (Find_Package)

CMake Error at CMake/FindLLVM.cmake:31 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:100 (Find_Package)

CMake Error at CMake/FindLLVM.cmake:36 (message):
imcompatible LLVM version required 3.3
Call Stack (most recent call first):
CMakeLists.txt:100 (Find_Package)

-- Configuring incomplete, errors occurred!
See also "/root/a/beignet/build/CMakeFiles/CMakeOutput.log".
See also "/root/a/beignet/build/CMakeFiles/CMakeError.log".

@rcombs
Copy link
Author

rcombs commented Nov 24, 2020

It looks like it's trying to use /usr/bin/llvm-config instead of /usr/lib/llvm-7/bin/llvm-config. I'd try removing whichever package /usr/bin/llvm-config came from. The error is somewhat misleading; LLVM 3.3 is the minimum version, and versions up to 7 work.

@syadnom
Copy link

syadnom commented Nov 24, 2020

dpkg -S /usr/bin/llvm-config-7
llvm-7: /usr/bin/llvm-config-7

but get this, I remove llvm-7, which deletes /usr/bin/llvm-config-7 and cmake still tells me:
-- LLVM llvm-config found at: /usr/bin/llvm-config

@rcombs
Copy link
Author

rcombs commented Nov 24, 2020

That's /usr/bin/llvm-config-7, not /usr/bin/llvm-config. The llvm-7 package doesn't install /usr/bin/llvm-config.
You may also need to clear out your build dir before retrying.

@syadnom
Copy link

syadnom commented Nov 24, 2020

nuked the build directory and I'm now able to get through it. thanks

@nwalke
Copy link

nwalke commented Feb 8, 2021

Thank you so much for this. I just wanted to confirm that this DOES fix the issue with detection I was seeing. Plex HDR to SDR hardware transcode did not work prior to building this from this branch, and does after.

This package really needs kept up to date with processor releases. My i9-9900k is not "new" by computer hardware standards.

This is really important @ruiling-song

@kcxserver
Copy link

kcxserver commented Feb 17, 2021

I agree. I bought a Comet Lake i3 10100 for my Plex Server and now had to find out that the HDR-> SDR feature doesn't work. What can I do to fix the problem?

@Brandoskey
Copy link

I'm having issues when running the make command from the build directory. It completes with 94 errors

94 errors generated. make[2]: *** [backend/src/libocl/CMakeFiles/beignet_bitcode.dir/build.make:474: backend/src/libocl/usr/local/lib/beignet/ocl_misc.bc] Error 1 1 warning generated. make[1]: *** [CMakeFiles/Makefile2:357: backend/src/libocl/CMakeFiles/beignet_bitcode.dir/all] Error 2 make: *** [Makefile:171: all] Error 2

I had to use llvm-12 in the cmake command posted above on ubuntu 21.04 to get that far

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

Successfully merging this pull request may close these issues.

None yet

5 participants