Skip to content

Cmake failure #5

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
raunraun opened this issue Feb 9, 2018 · 3 comments
Closed

Cmake failure #5

raunraun opened this issue Feb 9, 2018 · 3 comments
Labels

Comments

@raunraun
Copy link

raunraun commented Feb 9, 2018

I'm having trouble following the build instructions.

First. Both the compute-runtime and the graphics-compiler both call for identical workspaces and say to create a 'build' directory for cmake. Both projects can't share the same build dir.

  • Am I expected to have 2 separate workspaces, 1 for the runtime and 1 for the compiler?
  • Should I have 2 build dir's in a single workspace, 1 for the runtime and 1 more the compiler?



Second. GoogleMock has been merged into GoogleTest several years ago. The CMakeList.txt for the runtime still seems to assume gtest and gmock are separate projects.

  • Should I be using an old gmock and gtest from when they where seperate projects?



Third. Related to the second, the runtime has several dependencies. Are there known good labels to use when building the workspace?

@ArturHarasimiuk
Copy link
Contributor

Thanks for your feedback. We are working to improve our build instructions.

intel-graphics-compiler is part of compute-runtime workspace. You don't need to create separate workspace for compiler when working with compute-runtime.

You can use below commands to create proper workspace:

git clone -b release_40 https://github.com/llvm-mirror/clang clang_source
git clone https://github.com/intel/opencl-clang common_clang
git clone https://github.com/intel/llvm-patches llvm_patches
git clone -b release_40 https://github.com/llvm-mirror/llvm llvm_source
git clone https://github.com/intel/gmmlib gmmlib
git clone -b release-1.7.0 https://github.com/google/googlemock gmock
git clone -b release-1.7.0 https://github.com/google/googletest gtest
git clone https://github.com/intel/intel-graphics-compiler igc
git clone https://github.com/KhronosGroup/OpenCL-Headers khronos
git clone https://anongit.freedesktop.org/git/mesa/drm.git libdrm
git clone https://github.com/intel/compute-runtime neo

For Google Test and Google Mock framework. Yes, you should use older version: 1.7.0 is expected.

@raunraun
Copy link
Author

These instructions look great - much clearer. I'll give it another try.

@MichalMrozek
Copy link
Contributor

Instructions are now updated, looks like this question may be closed.

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

No branches or pull requests

3 participants