Add code to use new HCC API accelerator_view::dispatch_hsa_kernel.

Disabed by default, can enable with USE_DISPATCH_HSA_KERNEL=1

Change-Id: I7a6ba76f2bada34952ed47f5335ce695fa2faea5
This commit is contained in:
Ben Sander
2016-10-14 23:46:29 -05:00
parent e5da443535
commit dcadaadb24
3 changed files with 38 additions and 3 deletions
+2
View File
@@ -346,6 +346,7 @@ void ihipStream_t::lockclose_postKernelCommand(hc::accelerator_view *av)
#if USE_DISPATCH_HSA_KERNEL==0
// Precursor: the stream is already locked,specifically so this routine can enqueue work into the specified av.
void ihipStream_t::launchModuleKernel(
hc::accelerator_view av,
@@ -397,6 +398,7 @@ void ihipStream_t::launchModuleKernel(
hsa_queue_store_write_index_relaxed(Queue, packet_index + 1);
hsa_signal_store_relaxed(Queue->doorbell_signal, packet_index);
}
#endif
//=============================================================================