Split files based on functionality and changed cmake file

[ROCm/clr commit: 1c55019322]
Этот коммит содержится в:
Aditya Atluri
2016-03-24 04:57:30 -05:00
родитель 539f1a419f
Коммит bd9979eda6
15 изменённых файлов: 527 добавлений и 3185 удалений
+6 -1
Просмотреть файл
@@ -1,3 +1,6 @@
#include "hip_runtime.h"
#include "hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h"
//-------------------------------------------------------------------------------------------------
//Devices
@@ -111,7 +114,6 @@ hipError_t hipDeviceGetSharedMemConfig ( hipSharedMemConfig * pConfig )
hipError_t hipSetDevice(int device)
{
HIP_INIT_API(device);
if ((device < 0) || (device >= g_deviceCnt)) {
return ihipLogStatus(hipErrorInvalidDevice);
} else {
@@ -263,3 +265,6 @@ hipError_t hipGetDeviceProperties(hipDeviceProp_t* props, int device)
return ihipLogStatus(e);
}