From b2f831ca46744de9366ce9f5a0a18fd5ca4be93e Mon Sep 17 00:00:00 2001 From: Julia jiang Date: Thu, 6 Aug 2020 12:10:36 -0400 Subject: [PATCH] SWDEV-247185-update OpenCL build instructions in Readme Change-Id: Id2835bfcbc3d19315c688a8160eedf367056ba5f [ROCm/clr commit: ed1fcc7c63420f117a64731f33d3baf6f2d020c5] --- projects/clr/opencl/README.md | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/projects/clr/opencl/README.md b/projects/clr/opencl/README.md index 5965981052..07a3c0af52 100644 --- a/projects/clr/opencl/README.md +++ b/projects/clr/opencl/README.md @@ -35,27 +35,11 @@ Run these commands: ```bash cd "$OPENCL_DIR" mkdir -p build; cd build -cmake -DUSE_COMGR_LIBRARY=ON -DCMAKE_PREFIX_PATH="$ROCclr_DIR/build" .. +cmake -DUSE_COMGR_LIBRARY=ON -DCMAKE_PREFIX_PATH="$ROCclr_DIR/build;/opt/rocm/" .. make -j$(nproc) ``` -For release build, add "-DCMAKE_BUILD_TYPE=Release" to the cmake command line. - -### Obsolete -These building instructions should be used for ROCm 3.5 release branch and earlier. - -```bash -cd $OPENCL_DIR -mkdir -p build; cd build -cmake -DVDI_DIR="$ROCclr_DIR" -DLIBVDI_STATIC_DIR="$ROCclr_DIR/build" .. -make -j$(nproc) -``` - -Previously, the environment variable VDI_DIR was defined in [ROCclr](https://github.com/ROCm-Developer-Tools/ROCclr). We did not use environment variable ROCclr_DIR. The cmake command was: - -```bash -cmake -DVDI_DIR="$VDI_DIR" -DLIBVDI_STATIC_DIR="$VDI_DIR/build" .. -``` +Note: For release build, add "-DCMAKE_BUILD_TYPE=Release" to the cmake command line. --- OpenCLâ„¢ is registered Trademark of Apple