Move include/* to include/hip/*

Change-Id: I7a7b2839b4df59c7a4c503550f99fdc9e45c0f54
Dieser Commit ist enthalten in:
Maneesh Gupta committed 2016-10-04 22:17:18 +05:30
1 Ursprung 48849feba3
Commit bbfc08f419
40 Dateien geändert
+51 -48

Keine Dateien entsprechen Ihrer Suche

+1 -1
Datei anzeigen
@@ -166,7 +166,7 @@ if(HIP_PLATFORM STREQUAL "hcc")
set(HIP_HCC_BUILD_FLAGS "${HIP_HCC_BUILD_FLAGS} -DHIP_VERSION_MAJOR=${HIP_VERSION_MAJOR} -DHIP_VERSION_MINOR=${HIP_VERSION_MINOR} -DHIP_VERSION_PATCH=${HIP_VERSION_PATCH}") set(HIP_HCC_BUILD_FLAGS "${HIP_HCC_BUILD_FLAGS} -DHIP_VERSION_MAJOR=${HIP_VERSION_MAJOR} -DHIP_VERSION_MINOR=${HIP_VERSION_MINOR} -DHIP_VERSION_PATCH=${HIP_VERSION_PATCH}")
# Add remaining flags # Add remaining flags
set(HIP_HCC_BUILD_FLAGS "${HIP_HCC_BUILD_FLAGS} -fPIC -hc -I${HCC_HOME}/include -I${HSA_PATH}/include -I/opt/rocm/libhsakmt/include/libhsakmt -stdlib=libc++") set(HIP_HCC_BUILD_FLAGS "${HIP_HCC_BUILD_FLAGS} -fPIC -hc -I${HCC_HOME}/include -I${HSA_PATH}/include -I/opt/rocm/libhsakmt/include -stdlib=libc++")
# Set compiler and compiler flags # Set compiler and compiler flags
set(CMAKE_CXX_COMPILER "${HCC_HOME}/bin/hcc") set(CMAKE_CXX_COMPILER "${HCC_HOME}/bin/hcc")
-1
Datei anzeigen
@@ -1 +0,0 @@
../include
+1 -1
Datei anzeigen
@@ -2,7 +2,7 @@
#define HCC_H #define HCC_H
#if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__) #if defined(__HIP_PLATFORM_HCC__) && !defined (__HIP_PLATFORM_NVCC__)
#include <hcc_detail/hcc_acc.h> #include "hip/hcc_detail/hcc_acc.h"
#endif #endif
#endif #endif
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
@@ -20,7 +20,7 @@ THE SOFTWARE.
#ifndef HIP_FP16_H #ifndef HIP_FP16_H
#define HIP_FP16_H #define HIP_FP16_H
#include "hip_runtime.h" #include "hip/hip_runtime.h"
typedef struct{ typedef struct{
unsigned x: 16; unsigned x: 16;
Datei ohne Änderungen umbenannt.
@@ -21,11 +21,9 @@ THE SOFTWARE.
#define HIP_LDG_H #define HIP_LDG_H
#if __HCC__ #if __HCC__
#include"hip_vector_types.h"
#include"host_defines.h"
#if __hcc_workweek__ >= 16164 #if __hcc_workweek__ >= 16164
#include"hip/hip_vector_types.h" #include "hip/hip_vector_types.h"
#include"hip/hcc_detail/host_defines.h" #include "hip/hcc_detail/host_defines.h"
__device__ char __ldg(const char* ); __device__ char __ldg(const char* );
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
Datei ohne Änderungen umbenannt.
+5 -4
Datei anzeigen
@@ -17,11 +17,12 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
*/ */
#include"hip_runtime.h" #include <hc.hpp>
#include<hc.hpp> #include <grid_launch.h>
#include<grid_launch.h>
#include <hc_math.hpp> #include <hc_math.hpp>
#include "hip/hip_runtime.h"
// TODO: Choose whether default is precise math or fast math based on compilation flag. // TODO: Choose whether default is precise math or fast math based on compilation flag.
#ifdef __HCC_ACCELERATOR__ #ifdef __HCC_ACCELERATOR__
using namespace hc::precise_math; using namespace hc::precise_math;
+3 -3
Datei anzeigen
@@ -22,9 +22,9 @@ THE SOFTWARE.
#include <stack> #include <stack>
#include "hip_runtime.h" #include "hip/hip_runtime.h"
#include "hcc_detail/hip_hcc.h" #include "hip/hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h" #include "hip/hcc_detail/trace_helper.h"
// Stack of contexts // Stack of contexts
thread_local std::stack<ihipCtx_t *> tls_ctxStack; thread_local std::stack<ihipCtx_t *> tls_ctxStack;
+3 -3
Datei anzeigen
@@ -17,9 +17,9 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
*/ */
#include "hip_runtime.h" #include "hip/hip_runtime.h"
#include "hcc_detail/hip_hcc.h" #include "hip/hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h" #include "hip/hcc_detail/trace_helper.h"
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
//Devices //Devices
+3 -3
Datei anzeigen
@@ -17,9 +17,9 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
*/ */
#include "hip_runtime.h" #include "hip/hip_runtime.h"
#include "hcc_detail/hip_hcc.h" #include "hip/hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h" #include "hip/hcc_detail/trace_helper.h"
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
+3 -3
Datei anzeigen
@@ -17,9 +17,9 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
*/ */
#include "hip_runtime.h" #include "hip/hip_runtime.h"
#include "hcc_detail/hip_hcc.h" #include "hip/hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h" #include "hip/hcc_detail/trace_helper.h"
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
+6 -6
Datei anzeigen
@@ -36,15 +36,15 @@ THE SOFTWARE.
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#include <atomic> #include <atomic>
#include <hc.hpp> #include <hc.hpp>
#include <hc_am.hpp> #include <hc_am.hpp>
#include "hsa/hsa_ext_amd.h"
#include "libhsakmt/hsakmt.h"
#include "hip_runtime.h" #include "hip/hip_runtime.h"
#include "hcc_detail/hip_hcc.h" #include "hip/hcc_detail/hip_hcc.h"
#include "hsa_ext_amd.h" #include "hip/hcc_detail/trace_helper.h"
#include "hsakmt.h"
#include "hcc_detail/trace_helper.h"
+2 -1
Datei anzeigen
@@ -18,7 +18,8 @@ THE SOFTWARE.
*/ */
#include <hc.hpp> #include <hc.hpp>
#include"hcc_detail/hip_ldg.h"
#include "hip/hcc_detail/hip_ldg.h"
__device__ char __ldg(const char* ptr) __device__ char __ldg(const char* ptr)
{ {
+7 -5
Datei anzeigen
@@ -17,12 +17,14 @@
THE SOFTWARE. THE SOFTWARE.
*/ */
#include "hip_runtime.h"
#include "hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h"
#include <hsa.h>
#include <hc_am.hpp> #include <hc_am.hpp>
#include <hsa_ext_amd.h> #include "hsa/hsa.h"
#include "hsa/hsa_ext_amd.h"
#include "hip/hip_runtime.h"
#include "hip/hcc_detail/hip_hcc.h"
#include "hip/hcc_detail/trace_helper.h"
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
// Memory // Memory
+8 -6
Datei anzeigen
@@ -17,17 +17,19 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
*/ */
#include "hip_runtime.h"
#include "hsa/hsa.h"
#include "hsa/hsa_ext_amd.h"
#include "hsa/amd_hsa_kernel_code.h"
#include "hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h"
#include <fstream> #include <fstream>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <elf.h> #include <elf.h>
#include "hsa/hsa.h"
#include "hsa/hsa_ext_amd.h"
#include "hsa/amd_hsa_kernel_code.h"
#include "hip/hip_runtime.h"
#include "hip/hcc_detail/hip_hcc.h"
#include "hip/hcc_detail/trace_helper.h"
//TODO Use Pool APIs from HCC to get memory regions. //TODO Use Pool APIs from HCC to get memory regions.
namespace hipdrv { namespace hipdrv {
+3 -3
Datei anzeigen
@@ -19,9 +19,9 @@ THE SOFTWARE.
#include <hc_am.hpp> #include <hc_am.hpp>
#include "hip_runtime.h" #include "hip/hip_runtime.h"
#include "hcc_detail/hip_hcc.h" #include "hip/hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h" #include "hip/hcc_detail/trace_helper.h"
// Peer access functions. // Peer access functions.
+3 -3
Datei anzeigen
@@ -17,9 +17,9 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
*/ */
#include "hip_runtime.h" #include "hip/hip_runtime.h"
#include "hcc_detail/hip_hcc.h" #include "hip/hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h" #include "hip/hcc_detail/trace_helper.h"
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------