[arrayfire] 165/248: Removed uncessary stream synchronizes in device pointer functions
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:54:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.
commit ff4812c2c8789b015dc1b617610768346e66c42c
Author: pradeep <pradeep at arrayfire.com>
Date: Fri Oct 30 14:34:54 2015 -0400
Removed uncessary stream synchronizes in device pointer functions
The user of the library should be handling these device(Stream)syncs
inorder to achieve total asynchronouse use of arrayfire in user space
programs.
---
src/api/c/device.cpp | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/src/api/c/device.cpp b/src/api/c/device.cpp
index 751b377..80b8733 100644
--- a/src/api/c/device.cpp
+++ b/src/api/c/device.cpp
@@ -174,10 +174,6 @@ af_err af_device_array(af_array *arr, const void *data,
af_err af_get_device_ptr(void **data, const af_array arr)
{
try {
-
- // Make sure all kernels and memcopies are done before getting device pointer
- detail::sync(getActiveDeviceId());
-
af_dtype type = getInfo(arr).getType();
switch (type) {
@@ -212,10 +208,6 @@ inline void lockDevicePtr(const af_array arr)
af_err af_lock_device_ptr(const af_array arr)
{
try {
-
- // Make sure all kernels and memcopies are done before getting device pointer
- detail::sync(getActiveDeviceId());
-
af_dtype type = getInfo(arr).getType();
switch (type) {
@@ -248,10 +240,6 @@ inline void unlockDevicePtr(const af_array arr)
af_err af_unlock_device_ptr(const af_array arr)
{
try {
-
- // Make sure all kernels and memcopies are done before getting device pointer
- detail::sync(getActiveDeviceId());
-
af_dtype type = getInfo(arr).getType();
switch (type) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list