Re-sync with upstream.

Ta zmiana jest zawarta w:
%! (template.HTML=Alex Voicu)złożyło 2017-11-20 15:34:50 +00:00
złożenie 30d90dab38
65 plików zmienionych
+320 -265

Żadne pliki nie pasują do Twojego wyszukiwania

+17
Wyświetl plik
@@ -91,6 +91,7 @@ namespace hip_impl
const dim3& dimBlocks,
uint32_t sharedMemBytes,
hipStream_t stream,
<<<<<<< HEAD
void** kernarg)
{
const auto it0 = functions().find(function_address);
@@ -133,6 +134,22 @@ namespace hip_impl
nullptr,
kernarg);
}
=======
void* locked_stream,
const char* kernel_name,
hc::accelerator_view* acc_v)
{ // Precondition: acc_v is the accelerator_view associated with stream
// which is guarded by locked_stream;
// locked_stream is deletable.
using L = decltype(stream->lockopen_preKernelCommand());
stream->lockclose_postKernelCommand(kernel_name, acc_v);
delete static_cast<L*>(locked_stream);
locked_stream = nullptr;
if(HIP_PROFILE_API) {
MARKER_END();
>>>>>>> e8ede28ec4f5744185b171031e537237afb7affa
}
}
}