From 0721dfd2e7b5b62ca41555a2b56b1c27b3380fb1 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Thu, 6 Jun 2019 15:23:24 -0500 Subject: [PATCH] Update README build instructions. Change-Id: I595e629117adfb44afb2e829d1f975782238277e --- runtime/hsa-runtime/README.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/runtime/hsa-runtime/README.md b/runtime/hsa-runtime/README.md index 2d87caaa88..f06be9769a 100644 --- a/runtime/hsa-runtime/README.md +++ b/runtime/hsa-runtime/README.md @@ -41,19 +41,28 @@ can be obtained from the ROCT-Thunk-Interface repository, available here: https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface -Specify the directory containing libhsakmt.so.1 and hsakmt.h using the -cmake variable, CMAKE_PREFIX_PATH: +Specify the directory containing libhsakmt.so.1 and hsakmt.h using the cmake variables, HSAKMT_LIB_PATH and HSAKMT_INC_PATH. These can be specified either on the command line +or via standard cmake configuration tools such as ccmake or cmake-gui. For example, from the top level ROCR repository execute: mkdir build cd build - cmake -D CMAKE_PREFIX_PATH=/opt/rocm/libhsakmt \ + cmake -DHSAKMT_INC_PATH:STRING= \ + -DHSAKMT_LIB_PATH:STRING= \ .. make + +alternately using ccmake: -The location specified here is the default installation directory of the -libhsakmt-roct-dev package. + mkdir build + cd build + ccmake .. + press c to configure + populate variables as desired + press c again + press g to generate and exit + make #### Specs