From dfd8394134cd0404d78d9566522bcf5be0997ed5 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 14 Jul 2017 14:54:24 -0400
Subject: [PATCH] P4 to Git Change 1434399 by lmoriche@lmoriche_palamida on
2017/07/14 14:29:20
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment
- Update from git.
Affected files ...
... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#13 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#7 edit
---
opencl/CMakeLists.txt | 1 +
opencl/api/opencl/amdocl/CMakeLists.txt | 1 +
2 files changed, 2 insertions(+)
diff --git a/opencl/CMakeLists.txt b/opencl/CMakeLists.txt
index 98284529e3..a679c4f2f3 100644
--- a/opencl/CMakeLists.txt
+++ b/opencl/CMakeLists.txt
@@ -43,6 +43,7 @@ add_subdirectory(compiler/driver)
set(BUILD_HC_LIB CACHE BOOL OFF)
set(ROCM_DEVICELIB_INCLUDE_TESTS CACHE BOOL OFF)
set(AMDGCN_TARGETS_LIB_LIST "AMDGCN_LIB_TARGETS")
+set(AMDGPU_TARGET_TRIPLE "amdgcn-amd-amdhsa-opencl")
add_subdirectory(library/amdgcn)
add_subdirectory(compiler/lib/loaders/elf/utils/libelf)
diff --git a/opencl/api/opencl/amdocl/CMakeLists.txt b/opencl/api/opencl/amdocl/CMakeLists.txt
index 2f72a2f48a..5dc525a6b4 100644
--- a/opencl/api/opencl/amdocl/CMakeLists.txt
+++ b/opencl/api/opencl/amdocl/CMakeLists.txt
@@ -42,6 +42,7 @@ add_library(amdocl64 SHARED
cl_d3d11.cpp
cl_context.cpp
cl_profile_amd.cpp
+ cl_p2p_amd.cpp
$
$
)