From 2b253a48b64f9c15bbef1ce37594bdba57e18307 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Tue, 23 May 2017 22:59:54 -0500 Subject: [PATCH] Use accelerator_scope for create_marker and create_blocking_marker. As optimization when system-scope is not needed. --- src/hip_hcc.cpp | 4 ++-- src/math_functions.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hip_hcc.cpp b/src/hip_hcc.cpp index 979a2e5028..efa05cbb93 100644 --- a/src/hip_hcc.cpp +++ b/src/hip_hcc.cpp @@ -352,7 +352,7 @@ void ihipStream_t::locked_waitEvent(hipEvent_t event) this->ensureHaveQueue(crit); - crit->_av.create_blocking_marker(event->_marker); + crit->_av.create_blocking_marker(event->_marker, hc::accelerator_scope); } // Create a marker in this stream. @@ -1490,7 +1490,7 @@ hipStream_t ihipSyncAndResolveStream(hipStream_t stream) // ensure any commands sent to this stream wait on the NULL stream before continuing LockedAccessor_StreamCrit_t thisStreamCrit(stream->criticalData()); // TODO - could be "noret" version of create_blocking_marker - thisStreamCrit->_av.create_blocking_marker(dcf); + thisStreamCrit->_av.create_blocking_marker(dcf, hc::accelerator_scope); } } } diff --git a/src/math_functions.cpp b/src/math_functions.cpp index f1e52c4036..151627fc73 100644 --- a/src/math_functions.cpp +++ b/src/math_functions.cpp @@ -942,10 +942,10 @@ __host__ float normcdfinvf(float x) return std::sqrt(2) * erfinvf(2*x-1); } -__host__ double normcdfinv(double x) -{ - return std::sqrt(2) * erfinv(2*x-1); -} +//__host__ double normcdfinv(double x) +//{ +// return std::sqrt(2) * erfinv(2*x-1); +//} __host__ float nextafterf(float x, float y) {