Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
caa08ec
Increment version to 3.3.1
shehzan10 Feb 29, 2016
dd2d89f
Sort files for compilation. Compiles files in alphabetical order
shehzan10 Mar 3, 2016
b2110ac
BUGFIX: Return cl_mem properly from OpenCL backend.
pavanky Mar 3, 2016
3f3e5c5
BUGFIX: Append so names when loading the libraries in unified backend.
pavanky Mar 3, 2016
d932a6f
BUGFIX % operator uses mod instead of rem
shehzan10 Mar 3, 2016
980b8fc
TYPO Correction to comments after fixes from commit 0258883
shehzan10 Mar 4, 2016
63af426
Merge pull request #1314 from pavanky/fixes-3.3.1
shehzan10 Mar 4, 2016
9ca1ea0
Merge pull request #1317 from shehzan10/hotfix-3.3.1
shehzan10 Mar 4, 2016
6dbf441
Replace lena image in kmeans example
9prady9 Mar 9, 2016
28305c8
BUGFIX cuFFT plans when using multiple devices
shehzan10 Mar 9, 2016
8214495
BUGFIX clFFT plans when using multiple devices
shehzan10 Mar 9, 2016
5f3bbb9
BUGFIX: Ensuring the data is destroyed using the proper memory manage.
pavanky Mar 6, 2016
00131de
Moving all functions related to af_array handling to api/c/array.cpp
pavanky Mar 6, 2016
c1c86b6
BUGFIX: Getting device pointer on empty arrays no longer segfaults.
pavanky Mar 10, 2016
332b6c4
BUGFIX: Getting device ptr now forces JIT evaluation.
pavanky Mar 10, 2016
24bc76e
BUGFIX: fixed issue in indexing after calling resetDims
pavanky Mar 10, 2016
01f1588
Fix in kmeans example
9prady9 Mar 10, 2016
1fc86c4
BUGFIX diagonal extract length is min instead of max of dims
shehzan10 Mar 9, 2016
b771ffe
Fixes to find lapacke.h on Fedora23
pavanky Mar 14, 2016
0859010
Fixing the logic to find cblas.h in FindCBLAS.cmake
pavanky Mar 14, 2016
c39e4b7
array test cleanup required for windows
pavanky Mar 14, 2016
f2d60b6
README.md restructuring
mlloreda Mar 14, 2016
8687aed
Merge pull request #1337 from pavanky/fedora-build-fixes
pavanky Mar 15, 2016
6abfbe4
Merge pull request #1334 from pavanky/index_fix
pavanky Mar 15, 2016
37a6763
Merge pull request #1333 from shehzan10/hotfix-3.3.1
pavanky Mar 15, 2016
f580623
Merge pull request #1330 from 9prady9/kmeans_example_fix
pavanky Mar 15, 2016
345053c
Merge pull request #1322 from pavanky/reorg
pavanky Mar 15, 2016
927987f
Merge pull request #1310 from mlloreda/documentation
pavanky Mar 15, 2016
32965ef
BUGFIX unresolved external for array_proxy::scalar etc
shehzan10 Mar 15, 2016
3755f55
Update clFFT build tag
shehzan10 Mar 15, 2016
8b234b4
Update clBLAS build tag
shehzan10 Mar 15, 2016
27c8bfb
Disable clfftTeardown call for Windows
shehzan10 Mar 16, 2016
58bd624
Merge pull request #1339 from shehzan10/hotfix-3.3.1
pavanky Mar 16, 2016
c72b25c
Updated Release Notes
shehzan10 Mar 16, 2016
1a5f265
Merge pull request #1340 from shehzan10/hotfix-3.3.1
pavanky Mar 17, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
BUGFIX: Ensuring the data is destroyed using the proper memory manage.
  • Loading branch information
pavanky committed Mar 10, 2016
commit 5f3bbb9978d4f7a302ec918a4359dcc02fdfbc31
11 changes: 10 additions & 1 deletion src/api/c/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <identity.hpp>
#include <diagonal.hpp>
#include <triangle.hpp>
#include <platform.hpp>

using af::dim4;
using namespace detail;
Expand Down Expand Up @@ -404,7 +405,13 @@ af_err af_identity(af_array *out, const unsigned ndims, const dim_t * const dims
af_err af_release_array(af_array arr)
{
try {
af_dtype type = getInfo(arr).getType();
int dev = getActiveDeviceId();

ArrayInfo info = getInfo(arr, false);

setDevice(info.getDevId());

af_dtype type = info.getType();

switch(type) {
case f32: releaseHandle<float >(arr); break;
Expand All @@ -421,6 +428,8 @@ af_err af_release_array(af_array arr)
case u16: releaseHandle<ushort >(arr); break;
default: TYPE_ERROR(0, type);
}

setDevice(dev);
}
CATCHALL

Expand Down