Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
300970a
BUGFIX: Handle errors being returned by the C binary functions
pavanky Mar 22, 2016
0b4c072
Handle errors for CUDA and OpenCL specific functions
pavanky Mar 22, 2016
8fb4709
BUGFIX: Do not take control of external OpenCL device and contexts
pavanky Mar 22, 2016
8e733d7
Incrementing the version to 3.3.2
pavanky Mar 22, 2016
5409155
Merge pull request #1354 from pavanky/fixes-3.3.2
shehzan10 Mar 23, 2016
fe037d9
More detailed message about CUDA computes in CMake
shehzan10 Mar 24, 2016
7129359
Disable JPEG_GREYSCALE flag in imageio if not defined in freeimage he…
shehzan10 Mar 24, 2016
3e462b4
If CUDA_CUDA_LIBRARY is not found, check for stub and throw error
shehzan10 Mar 28, 2016
8ce7eb6
Prevent inclusion of <sys/sysctl.h> on gnu hurd.
ghisvail Mar 28, 2016
8f8e54f
Merge pull request #1368 from ghisvail/fix/gnu-hurd-support
pavanky Mar 29, 2016
89d7694
Merge pull request #1367 from shehzan10/cmake-fixes
pavanky Mar 29, 2016
986b6c3
BUILD: fix to disable using CPUID on demand
pavanky Mar 29, 2016
98e023d
Updated boost.compute to latest develop commit
shehzan10 Mar 30, 2016
8026cdb
Use stable sort for thrust and boost compute
shehzan10 Mar 30, 2016
09129b0
Allow complex types as value type in sort_by_key
shehzan10 Mar 30, 2016
cda059f
Improvements to sort
shehzan10 Mar 31, 2016
e6c9e93
Revert "Updated boost.compute to latest develop commit"
shehzan10 Mar 31, 2016
aaa0a05
Boost.Compute sort/sort_by_key are stable in v0.5. So revert to that
shehzan10 Mar 31, 2016
3422d01
Call modDims when setDataDims is called
shehzan10 Apr 1, 2016
3fea8a2
Fix temp Array T and moddims in CPU batched sort
shehzan10 Apr 1, 2016
03ce51f
Call thrust/compute::sort_by_key instead of kernel::sort_by_key wrapper
shehzan10 Apr 4, 2016
6c47b15
PERF Add batched sort to sort_index for CPU and CUDA
shehzan10 Apr 4, 2016
92103cb
Disable CPU Async if GCC Version is less than 4.8.4
shehzan10 Apr 7, 2016
ab2f36c
Merge pull request #1380 from shehzan10/cpu-async-gcc
pavanky Apr 12, 2016
fe49998
Merge branch 'fixes_32' of pavanky/arrayfire into hotfix-3.3.1
pavanky Apr 12, 2016
962b34d
Fixes for compiling CPU/OpenCL on Windows with static MKL and freeimage
shehzan10 Apr 14, 2016
1a928fd
Add NOMINMAX for windows for tests when build out of source
shehzan10 Apr 15, 2016
b2a55a4
Check for MKL options after find blas
shehzan10 Apr 15, 2016
46547a1
TEST: Adding rgb <--> gray conversion tests
pavanky Apr 18, 2016
8d7eaad
BUGFIX: Fixing rgb to gray conversion
pavanky Apr 18, 2016
48dcfb0
Fix ordering of data from sort
shehzan10 Apr 18, 2016
98a5b27
Merge pull request #1385 from shehzan10/hotfix-3.3.2
shehzan10 Apr 19, 2016
2da0b4f
Merge pull request #1387 from pavanky/rgb2gray_fix
shehzan10 Apr 19, 2016
c79b26f
Fix reordering of data for sort_index in cpu and cuda
shehzan10 Apr 19, 2016
08613a8
Added sort_by_key batching to CPU and CUDA
shehzan10 Apr 20, 2016
aaa13f6
Added tests for sort_index and sort_by_key for higher dimensions
shehzan10 Apr 20, 2016
9066af5
BUILD: Add options to build deb and rpm packages on demand
pavanky Apr 20, 2016
8dad427
Add sort index, sort by key batching to OpenCL
shehzan10 Apr 21, 2016
efdc542
Combine sort_index and sort_by_key kernels in CPU
shehzan10 Apr 21, 2016
460bf6c
Combine sort_index and sort_by_key kernels in CUDA
shehzan10 Apr 21, 2016
363e86e
Combine sort_index and sort_by_key kernels in OpenCL
shehzan10 Apr 21, 2016
87513e0
Fix sort calls from harris and orb in CUDA
shehzan10 Apr 21, 2016
c6e08d5
Fix sort calls from harris and orb in OpenCL
shehzan10 Apr 21, 2016
8f48cdc
Clean up sort tests
shehzan10 Apr 21, 2016
7f1a3fd
DOCS: Updating documentation for replace.
pavanky Apr 21, 2016
b6a6a87
Fixed sort_by_key kernel for OpenCL
shehzan10 Apr 21, 2016
75b1a6b
Instantiate sort_by_key kernels in separately
shehzan10 Apr 22, 2016
bbdae15
Instantiate sort_by_key kernels in separately in opencl
shehzan10 Apr 22, 2016
cbefc1f
Instantiate sort_by_key kernels in separately in cpu
shehzan10 Apr 22, 2016
45574db
Sort by key cuda - create pair memory using memalloc, reasonable heur…
shehzan10 Apr 22, 2016
840ea28
Remove sort 0 dim restriction note from documentation
shehzan10 Apr 22, 2016
f6eae07
Add multi dimension support to median, tests
shehzan10 Apr 22, 2016
9c4cad3
Merge pull request #1373 from shehzan10/sort
pavanky Apr 24, 2016
37a47fb
Merge pull request #1389 from pavanky/rpm_deb_builds
pavanky Apr 24, 2016
4a3a839
Converting std::pair to std::tuple to get for sorting in CPU backend
pavanky Apr 24, 2016
9443bf2
Use memAlloc and memFree instead of std::vector internally
pavanky Apr 24, 2016
4cdb9fb
Fixes to Using on OSX page
shehzan10 Apr 25, 2016
ad7256d
OSX Installer: better error handling from brew failures
shehzan10 Apr 25, 2016
98cbd9c
Updated release notes for v3.3.2
shehzan10 Apr 25, 2016
6cacb59
Merge pull request #1391 from pavanky/compile_fix
shehzan10 Apr 25, 2016
be22316
Merge pull request #1393 from shehzan10/hotfix-3.3.2
shehzan10 Apr 25, 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
35 changes: 22 additions & 13 deletions CMakeModules/CPackConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,27 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

INCLUDE("${CMAKE_MODULE_PATH}/Version.cmake")

OPTION(CREATE_STGZ "Create .sh install file" ON)
MARK_AS_ADVANCED(CREATE_STGZ)

# CPack package generation
#SET(CPACK_GENERATOR "TGZ;STGZ")
SET(CPACK_GENERATOR "STGZ")
# Create the following installers are as follows:
# Windows: Use external packaging, do nothing here
# OSX: Deploy as TGZ and STGZ
#IF("${CMAKE_SYSTEM}" MATCHES "Linux")
# # Linux: TGZ, STGZ, DEB
# SET(CPACK_GENERATOR "TGZ;STGZ;DEB;RPM")
#ENDIF()
IF(${CREATE_STGZ})
LIST(APPEND CPACK_GENERATOR "STGZ")
ENDIF()

OPTION(CREATE_DEB "Create .deb install file" OFF)
MARK_AS_ADVANCED(CREATE_DEB)

IF(${CREATE_DEB})
LIST(APPEND CPACK_GENERATOR "DEB")
ENDIF()

OPTION(CREATE_RPM "Create .rpm install file" OFF)
MARK_AS_ADVANCED(CREATE_RPM)

IF(${CREATE_RPM})
LIST(APPEND CPACK_GENERATOR "RPM")
ENDIF()

# Common settings to all packaging tools
SET(CPACK_PREFIX_DIR ${CMAKE_INSTALL_PREFIX})
Expand Down Expand Up @@ -59,16 +70,14 @@ SET(CPACK_COMPONENTS_ALL libraries headers documentation cmake)
# Debian package
##
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${PROCESSOR_ARCHITECTURE})
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libfreeimage-dev, libatlas3gf-base, libfftw3-dev, liblapacke-dev")
SET(CPACK_DEBIAN_PACKAGE_SUGGESTS "ocl-icd-libopencl1 (>= 2.0), nvidia-cuda-dev (>= 6.0)")

##
# RPM package
##
SET(CPACK_RPM_PACKAGE_LICENSE "BSD")
SET(CPACK_PACKAGE_GROUP "Development/Libraries")
SET(CPACK_RPM_PACKAGE_REQUIRES "freeimage atlas fftw lapack")
set(CPACK_RPM_PACKAGE_AUTOREQPROV " no")

SET(CPACK_PACKAGE_GROUP "Development/Libraries")
##
# Source package
##
Expand Down
2 changes: 1 addition & 1 deletion CMakeModules/Version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
SET(AF_VERSION_MAJOR "3")
SET(AF_VERSION_MINOR "3")
SET(AF_VERSION_PATCH "1")
SET(AF_VERSION_PATCH "2")

SET(AF_VERSION "${AF_VERSION_MAJOR}.${AF_VERSION_MINOR}.${AF_VERSION_PATCH}")
SET(AF_API_VERSION_CURRENT ${AF_VERSION_MAJOR}${AF_VERSION_MINOR})
Expand Down
1 change: 1 addition & 0 deletions CMakeModules/osx_install/OSXInstaller.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ PKG_BUILD( PKG_NAME ArrayFireOPENCL
DEPENDS OSX_INSTALL_SETUP_OpenCL
TARGETS opencl_package
INSTALL_LOCATION /usr/local
SCRIPT_DIR ${OSX_INSTALL_DIR}/opencl_scripts
IDENTIFIER com.arrayfire.pkg.arrayfire.opencl.lib
PATH_TO_FILES ${OSX_TEMP}/OpenCL
FILTERS cpu cuda unified)
Expand Down
17 changes: 14 additions & 3 deletions CMakeModules/osx_install/cpu_scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ set -o pipefail
err_file=/tmp/AFInstallerCPU.err
brew=/usr/local/bin/brew

echo $(date) > $err_file

if [ ! -f $brew ]; then
osascript -e 'tell app "Finder" to display dialog "Brew not installed. Please install brew at http://brew.sh"'
osascript -e 'tell app "Installer" to display dialog "Brew not installed. Please install brew at http://brew.sh"'
open http://brew.sh
echo "Brew not found" >> $err_file
exit 1
Expand All @@ -20,5 +22,14 @@ if [ -z $user ]; then
exit 1
fi

su $user -c "$brew tap homebrew/versions" 2> $err_file
su $user -c "$brew install fftw glfw3 fontconfig" 2> $err_file
function deps_err
{
osascript -e 'tell app "Installer" to display dialog "ArrayFire files installed but failed to install ArrayFire dependencies using Brew."'
osascript -e 'tell app "Installer" to display dialog "Visit https://github.com/arrayfire/arrayfire/wiki/Fixing-Common-OS-X-Installer-Failures to fix errors manually."'
open https://github.com/arrayfire/arrayfire/wiki/Fixing-Common-OS-X-Installer-Failures
echo "Dependencies failed to install" >> $err_file
exit 1
}

su $user -c "$brew tap homebrew/versions" >> $err_file 2>&1
su $user -c "$brew install fftw glfw3 fontconfig" >> $err_file 2>&1 || deps_err
17 changes: 14 additions & 3 deletions CMakeModules/osx_install/cuda_scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ set -o pipefail
err_file=/tmp/AFInstallerCUDA.err
brew=/usr/local/bin/brew

echo $(date) > $err_file

if [ ! -f $brew ]; then
osascript -e 'tell app "Finder" to display dialog "Brew not installed. Please install brew at brew.sh"'
osascript -e 'tell app "Installer" to display dialog "Brew not installed. Please install brew at brew.sh"'
echo "Brew not found" >> $err_file
exit 1
fi
Expand All @@ -19,5 +21,14 @@ if [ -z $user ]; then
exit 1
fi

su $user -c "$brew tap homebrew/versions" 2> $err_file
su $user -c "$brew install glfw3 fontconfig" 2> $err_file
function deps_err
{
osascript -e 'tell app "Installer" to display dialog "ArrayFire files installed but failed to install ArrayFire dependencies using Brew."'
osascript -e 'tell app "Installer" to display dialog "Visit https://github.com/arrayfire/arrayfire/wiki/Fixing-Common-OS-X-Installer-Failures to fix errors manually."'
open https://github.com/arrayfire/arrayfire/wiki/Fixing-Common-OS-X-Installer-Failures
echo "Dependencies failed to install" >> $err_file
exit 1
}

su $user -c "$brew tap homebrew/versions" >> $err_file 2>&1
su $user -c "$brew install glfw3 fontconfig" >> $err_file 2>&1 || deps_err
17 changes: 14 additions & 3 deletions CMakeModules/osx_install/opencl_scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ set -o pipefail
err_file=/tmp/AFInstallerOpenCL.err
brew=/usr/local/bin/brew

echo $(date) > $err_file

if [ ! -f $brew ]; then
osascript -e 'tell app "Finder" to display dialog "Brew not installed. Please install brew at brew.sh"'
osascript -e 'tell app "Installer" to display dialog "Brew not installed. Please install brew at brew.sh"'
echo "Brew not found" >> $err_file
exit 1
fi
Expand All @@ -19,5 +21,14 @@ if [ -z $user ]; then
exit 1
fi

su $user -c "$brew tap homebrew/versions" 2> $err_file
su $user -c "$brew install glfw3 fontconfig" 2> $err_file
function deps_err
{
osascript -e 'tell app "Installer" to display dialog "ArrayFire files installed but failed to install ArrayFire dependencies using Brew."'
osascript -e 'tell app "Installer" to display dialog "Visit https://github.com/arrayfire/arrayfire/wiki/Fixing-Common-OS-X-Installer-Failures to fix errors manually."'
open https://github.com/arrayfire/arrayfire/wiki/Fixing-Common-OS-X-Installer-Failures
echo "Dependencies failed to install" >> $err_file
exit 1
}

su $user -c "$brew tap homebrew/versions" >> $err_file 2>&1
su $user -c "$brew install fftw glfw3 fontconfig" >> $err_file 2>&1 || deps_err
1 change: 1 addition & 0 deletions CMakeModules/osx_install/readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ <h2>Install Directories</h2>
</ul>
<p> For complete list of updates, visit <a href="http://www.arrayfire.com/docs/releasenotes.htm">ArrayFire Release Notes</a></p>

<p> For questions about ArrayFire or this installer, visit <a href="https://groups.google.com/forum/#!forum/arrayfire-users"> ArrayFire User Forums</a> </p>
</body>
</html>
4 changes: 2 additions & 2 deletions docs/details/data.dox
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ array/value is selected.

\brief Replace elements of an array based on an conditional array

If the condition array has an element as true, then the element is
replaced by the array/value, otherwise no change.
- Input values are retained when corresponding elements from condition array are true.
- Input values are replaced when corresponding elements from condition array are false.

\ingroup manip_mat
\ingroup arrayfire_func
Expand Down
45 changes: 44 additions & 1 deletion docs/pages/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,49 @@
Release Notes {#releasenotes}
==============

v3.3.2
==============

Improvements
------------
* Family of [Sort](\ref sort_mat) functions now support
[higher order dimensions](https://github.com/arrayfire/arrayfire/pull/1373).
* Improved performance of batched sort on dim 0 for all [Sort](\ref sort_mat) functions.
* [Median](\ref stat_func_median) now also supports higher order dimensions.

Bug Fixes
--------------

* Fixes to [error handling](https://github.com/arrayfire/arrayfire/issues/1352) in C++ API for binary functions.
* Fixes to [external OpenCL context management](https://github.com/arrayfire/arrayfire/issues/1350).
* Fixes to [JPEG_GREYSCALE](https://github.com/arrayfire/arrayfire/issues/1360) for FreeImage versions <= 3.154.
* Fixed for [non-float inputs](https://github.com/arrayfire/arrayfire/issues/1386) to \ref af::rgb2gray().

Build
------
* [Disable CPU Async](https://github.com/arrayfire/arrayfire/issues/1378) when building with GCC < 4.8.4.
* Add option to [disable CPUID](https://github.com/arrayfire/arrayfire/issues/1369) from CMake.
* More verbose message when [CUDA Compute Detection fails](https://github.com/arrayfire/arrayfire/issues/1362).
* Print message to use [CUDA library stub](https://github.com/arrayfire/arrayfire/issues/1363)
from CUDA Toolkit if CUDA Library is not found from default paths.
* [Build Fixes](https://github.com/arrayfire/arrayfire/pull/1385) on Windows.
* For compiling tests our of source.
* For compiling ArrayFire with static MKL.
* [Exclude <sys/sysctl.h>](https://github.com/arrayfire/arrayfire/pull/1368) when building on GNU Hurd.
* Add [manual CMake options](https://github.com/arrayfire/arrayfire/pull/1389) to build DEB and RPM packages.

Documentation
-------------
* Fixed documentation for \ref af::replace().
* Fixed images in [Using on OSX](\ref using_on_osx) page.

Installer
---------
* Linux x64 installers will now be compiled with GCC 4.9.2.
* OSX installer gives better error messages on brew failures and
now includes link to [Fixing OS X Installer Failures] (https://github.com/arrayfire/arrayfire/wiki/Fixing-Common-OS-X-Installer-Failures)
for brew installation failures.

v3.3.1
==============

Expand Down Expand Up @@ -361,7 +404,7 @@ Bug Fixes
Documentation Updates
---------------------
* Improved tutorials documentation
* More detailed Using on [Linux](\ref using_on_windows), [OSX](\ref using_on_windows),
* More detailed Using on [Linux](\ref using_on_linux), [OSX](\ref using_on_osx),
[Windows](\ref using_on_windows) pages.
* Added return type information for functions that return different type
arrays
Expand Down
Loading