Split files based on functionality and changed cmake file

This commit is contained in:
Aditya Atluri
2016-03-24 04:57:30 -05:00
والد 890ec4c45c
کامیت 1c55019322
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);
}