Split files based on functionality and changed cmake file

Dieser Commit ist enthalten in:
Aditya Atluri
2016-03-24 04:57:30 -05:00
Ursprung a24361df6f
Commit 794007c3e8
15 geänderte Dateien mit 527 neuen und 3185 gelöschten Zeilen
+3 -19
Datei anzeigen
@@ -1,3 +1,6 @@
#include "hip_runtime.h"
#include "hcc_detail/hip_hcc.h"
#include "hcc_detail/trace_helper.h"
//-------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------
@@ -113,25 +116,6 @@ hipError_t hipEventSynchronize(hipEvent_t event)
}
void ihipSetTs(hipEvent_t e)
{
ihipEvent_t *eh = e._handle;
if (eh->_state == hipEventStatusRecorded) {
// already recorded, done:
return;
} else {
// TODO - use completion-future functions to obtain ticks and timestamps:
hsa_signal_t *sig = static_cast<hsa_signal_t*> (eh->_marker.get_native_handle());
if (sig) {
if (hsa_signal_load_acquire(*sig) == 0) {
eh->_timestamp = eh->_marker.get_end_tick();
eh->_state = hipEventStatusRecorded;
}
}
}
}
//---
hipError_t hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop)
{