You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first 😸
Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
Expected behavior
I have an orange pi 5 (aarch64), so I am building from source to leverage opencl on rk3588 chip.
Follow the instructions here and come out the other side with some binaries.
Actual behavior
Building does not work simply by following the documentation due to this error:
CMake Error at CMakeLists.txt:523 (message):
Neither GTest::GTest nor GTest::gtest targets defined IMPORTED_LOCATION
I know nothing about cmake, so it took a bit of digging, but I found that CMakeLists.txt is missing this:
This references the latest commit as of today (if someone else sees this, go to the googletest repo to get the must up to date commit as per repo recommendation).
After including this in CMakeLists.txt I was I able to build.
I may not be doing this completely the right way due to my lack of experience with cmake, so take it with a grain of salt, but I think this dependency should be included in CMakeLists or have GTEST variable defaulting to false, which would also avoid this problem (I think).
Environment
I don't know what else would be relevant beyond this:
Driver
ICD loader Version 2.3.1
ICD loader Profile OpenCL 3.0
Compiler tools
cmake version 3.25.1
gcc (Debian 12.2.0-14) 12.2.0
ccache version 4.7.5
I am not sure, but I suspect you don't need an orange pi 5 to reproduce it. just a machine without gtest installed and follow the build instructions from the website, except this single modification to enable opencl:
echo"set(USE_OPENCL ON)">> config.cmake # originally off
Triage
Please refer to the list of label tags here to find the relevant tags and add them below in a bullet format (example below).
needs-triage
backend: opencl
The text was updated successfully, but these errors were encountered:
fabio-s-franco
changed the title
[Bug] CMakeLists.txt is missing FetchContent_Declare fpr googletest
[Bug] CMakeLists.txt is missing FetchContent_Declare for googletest
Feb 1, 2025
Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first 😸
Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
Expected behavior
I have an orange pi 5 (aarch64), so I am building from source to leverage opencl on rk3588 chip.
Follow the instructions here and come out the other side with some binaries.
Actual behavior
Building does not work simply by following the documentation due to this error:
I know nothing about cmake, so it took a bit of digging, but I found that CMakeLists.txt is missing this:
include(FetchContent) FetchContent_Declare( googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG e235eb34c6c4fed790ccdad4b16394301360dcd4 ) FetchContent_MakeAvailable(googletest)
This references the latest commit as of today (if someone else sees this, go to the googletest repo to get the must up to date commit as per repo recommendation).
After including this in CMakeLists.txt I was I able to build.
I may not be doing this completely the right way due to my lack of experience with cmake, so take it with a grain of salt, but I think this dependency should be included in CMakeLists or have GTEST variable defaulting to false, which would also avoid this problem (I think).
Environment
I don't know what else would be relevant beyond this:
OrangePi 5 aarch64 (rk3588) 8 GB RAM
Steps to reproduce
I am not sure, but I suspect you don't need an orange pi 5 to reproduce it. just a machine without gtest installed and follow the build instructions from the website, except this single modification to enable opencl:
Triage
Please refer to the list of label tags here to find the relevant tags and add them below in a bullet format (example below).
The text was updated successfully, but these errors were encountered: