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
{{ message }}
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
Using ubuntu18.04 rocm4.5.2 source to build rocclr:
readme file states:
Build ROCclr
Here is command to build ROCclr:
cd"$ROCclr_DIR"
mkdir -p build;cd build
cmake -DOPENCL_DIR="$OPENCL_DIR" -DCMAKE_INSTALL_PREFIX=/opt/rocm/rocclr ..
make -j$(nproc)
sudo make install
Everything until make -j8 is OK including make.
but make install target is not recognized. as a result, build files stuck in SOURCE build directory and can not install onto /opt/rocm because of it
cmake -DOPENCL_DIR="$OPENCL_DIR" -DCMAKE_INSTALL_PREFIX=/opt/rocm/rocclr ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:26 (message):
ROCclr is being built as a standalone project. This isn't supported
anymore.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found AMD_OPENCL: /root/ROCm-4.5/ROCm-OpenCL-Runtime/khronos/headers/opencl2.2/CL
-- Found NUMA: /usr/lib/x86_64-linux-gnu/libnuma.so
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
OPENCL_DIR
-- Build files have been written to: /root/ROCm-4.5/ROCclr/build
root@localhost:~/ROCm-4.5/ROCclr/build# ls
CMakeCache.txt CMakeFiles Makefile cmake_install.cmake
root@localhost:~/ROCm-4.5/ROCclr/build# make -j8
Scanning dependencies of target rocclr
[ 2%] Building CXX object CMakeFiles/rocclr.dir/compiler/lib/utils/options.cpp.o
[ 4%] Building CXX object CMakeFiles/rocclr.dir/device/appprofile.cpp.o
[ 6%] Building CXX object CMakeFiles/rocclr.dir/device/blit.cpp.o
[ 8%] Building CXX object CMakeFiles/rocclr.dir/device/blitcl.cpp.o
[ 12%] Building CXX object CMakeFiles/rocclr.dir/device/devhcmessages.cpp.o
[ 12%] Building CXX object CMakeFiles/rocclr.dir/device/comgrctx.cpp.o
[ 14%] Building CXX object CMakeFiles/rocclr.dir/device/devhcprintf.cpp.o
[ 16%] Building CXX object CMakeFiles/rocclr.dir/device/devhostcall.cpp.o
[ 18%] Building CXX object CMakeFiles/rocclr.dir/device/device.cpp.o
[ 20%] Building CXX object CMakeFiles/rocclr.dir/device/devkernel.cpp.o
[ 22%] Building CXX object CMakeFiles/rocclr.dir/device/devprogram.cpp.o
[ 24%] Building CXX object CMakeFiles/rocclr.dir/device/devwavelimiter.cpp.o
[ 26%] Building CXX object CMakeFiles/rocclr.dir/device/hsailctx.cpp.o
[ 28%] Building CXX object CMakeFiles/rocclr.dir/device/hwdebug.cpp.o
[ 30%] Building CXX object CMakeFiles/rocclr.dir/elf/elf.cpp.o
[ 32%] Building CXX object CMakeFiles/rocclr.dir/os/alloc.cpp.o
[ 34%] Building CXX object CMakeFiles/rocclr.dir/os/os_posix.cpp.o
[ 36%] Building CXX object CMakeFiles/rocclr.dir/os/os_win32.cpp.o
[ 38%] Building CXX object CMakeFiles/rocclr.dir/os/os.cpp.o
[ 40%] Building CXX object CMakeFiles/rocclr.dir/platform/activity.cpp.o
[ 42%] Building CXX object CMakeFiles/rocclr.dir/platform/agent.cpp.o
[ 44%] Building CXX object CMakeFiles/rocclr.dir/platform/command.cpp.o
[ 46%] Building CXX object CMakeFiles/rocclr.dir/platform/commandqueue.cpp.o
[ 48%] Building CXX object CMakeFiles/rocclr.dir/platform/context.cpp.o
[ 51%] Building CXX object CMakeFiles/rocclr.dir/platform/kernel.cpp.o
[ 53%] Building CXX object CMakeFiles/rocclr.dir/platform/memory.cpp.o
[ 55%] Building CXX object CMakeFiles/rocclr.dir/platform/ndrange.cpp.o
[ 57%] Building CXX object CMakeFiles/rocclr.dir/platform/program.cpp.o
[ 59%] Building CXX object CMakeFiles/rocclr.dir/platform/runtime.cpp.o
[ 61%] Building CXX object CMakeFiles/rocclr.dir/thread/monitor.cpp.o
[ 63%] Building CXX object CMakeFiles/rocclr.dir/thread/semaphore.cpp.o
[ 65%] Building CXX object CMakeFiles/rocclr.dir/thread/thread.cpp.o
[ 67%] Building CXX object CMakeFiles/rocclr.dir/utils/debug.cpp.o
[ 71%] Building CXX object CMakeFiles/rocclr.dir/utils/flags.cpp.o
[ 71%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocappprofile.cpp.o
[ 73%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocblit.cpp.o
[ 75%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/roccounters.cpp.o
[ 77%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocdevice.cpp.o
[ 79%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocglinterop.cpp.o
[ 81%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rockernel.cpp.o
[ 83%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocmemory.cpp.o
[ 85%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocprintf.cpp.o
[ 87%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocprogram.cpp.o
[ 89%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocschedcl.cpp.o
[ 91%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocsettings.cpp.o
[ 93%] Building CXX object CMakeFiles
```/rocclr.dir/device/rocm/rocsignal.cpp.o
[ 95%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocvirtual.cpp.o
[ 97%] Building CXX object CMakeFiles/rocclr.dir/device/rocm/rocurilocator.cpp.o
[100%] Linking CXX static library librocclr.a
[100%] Built target rocclr
root@localhost:~/ROCm-4.5/ROCclr/build# make install
make: *** No rule to make target 'install'. Stop.
The text was updated successfully, but these errors were encountered:
There is a warning:
CMake Warning (dev) at CMakeLists.txt:26 (message): ROCclr is being built as a standalone project. This isn't supported anymore.
You would need to build HIP/OCL runtime. ROCclr is just a static lib inside those projects and not a standalone component.
user@compute2:~/amd/runtime/ROCclr/build$ sudo make install
make: *** No rule to make target 'install'. Stop.
user@compute2:~/amd/runtime/ROCclr/build$ sudo make
Consolidate compiler generated dependencies of target rocclr
[100%] Built target rocclr
user@compute2:~/amd/runtime/ROCclr/build$ ls -al
total 3576
drwxrwxr-x 3 user user 4096 Jun 28 11:33 .
drwxrwxr-x 13 user user 4096 Jun 28 11:26 ..
-rw-rw-r-- 1 user user 15733 Jun 28 11:32 CMakeCache.txt
drwxrwxr-x 5 user user 4096 Jun 28 11:33 CMakeFiles
-rw-rw-r-- 1 user user 1647 Jun 28 11:32 cmake_install.cmake
-rw-rw-r-- 1 user user 3579210 Jun 28 11:33 librocclr.a
-rw-rw-r-- 1 user user 48914 Jun 28 11:32 Makefile
user@compute2:~/amd/runtime/ROCclr/build$
How can I resolve ROCclr not in /opt/rocm/ROCclr issue ?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Using ubuntu18.04 rocm4.5.2 source to build rocclr:
readme file states:
Build ROCclr
Here is command to build ROCclr:
Everything until make -j8 is OK including make.
but make install target is not recognized. as a result, build files stuck in SOURCE build directory and can not install onto /opt/rocm because of it
The text was updated successfully, but these errors were encountered: