Skip to content

Commit d6c13c2

Browse files
committed
Renaming src/api/hapi to src/api/unified
1 parent 15b0221 commit d6c13c2

25 files changed

Lines changed: 16 additions & 16 deletions

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ OPTION(BUILD_SIFT "Build ArrayFire nonfree algorithms" OFF)
3535

3636
MARK_AS_ADVANCED(BUILD_SIFT)
3737

38-
OPTION(BUILD_AF "Build Backend-Independent ArrayFire API" ON)
38+
OPTION(BUILD_UNIFIED "Build Backend-Independent ArrayFire API" ON)
3939

4040
# Set a default build type if none was specified
4141
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
@@ -170,8 +170,8 @@ IF(${BUILD_OPENCL})
170170
ADD_SUBDIRECTORY(src/backend/opencl)
171171
ENDIF()
172172

173-
IF(${BUILD_AF})
174-
ADD_SUBDIRECTORY(src/api/hapi)
173+
IF(${BUILD_UNIFIED})
174+
ADD_SUBDIRECTORY(src/api/unified)
175175
ENDIF()
176176

177177
IF(${BUILD_DOCS})

examples/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ ENDMACRO()
6868

6969
# Collect the source
7070
FILE(GLOB FILES "*/*.cpp")
71-
FILE(GLOB HAPI_FILES "hapi/*.cpp")
71+
FILE(GLOB UNIFIED_FILES "unified/*.cpp")
7272
ADD_DEFINITIONS("-DASSETS_DIR=\"${ASSETS_DIR}\"")
7373

74-
IF(${ArrayFire_HAPI_FOUND})
75-
MESSAGE(STATUS "HAPI examples")
74+
IF(${ArrayFire_UNIFIED_FOUND})
75+
MESSAGE(STATUS "UNIFIED examples")
7676
IF(WIN32)
77-
BUILD_ALL("${HAPI_FILES}" hapi ${ArrayFire_HAPI_LIBRARIES} "")
77+
BUILD_ALL("${UNIFIED_FILES}" unified ${ArrayFire_UNIFIED_LIBRARIES} "")
7878
ELSE()
79-
BUILD_ALL("${HAPI_FILES}" hapi ${ArrayFire_HAPI_LIBRARIES} dl)
79+
BUILD_ALL("${UNIFIED_FILES}" unified ${ArrayFire_UNIFIED_LIBRARIES} dl)
8080
ENDIF()
8181
ELSEIF(TARGET af)
82-
MESSAGE(STATUS "HAPI examples")
82+
MESSAGE(STATUS "UNIFIED examples")
8383
IF(WIN32)
84-
BUILD_ALL("${HAPI_FILES}" hapi af "")
84+
BUILD_ALL("${UNIFIED_FILES}" unified af "")
8585
ELSE()
86-
BUILD_ALL("${HAPI_FILES}" hapi af dl)
86+
BUILD_ALL("${UNIFIED_FILES}" unified af dl)
8787
ENDIF()
8888
ENDIF()
8989

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
********************************************************/
99

1010
#include <arrayfire.h>
11-
#include <af/hapi.h>
11+
#include <af/backend.h>
1212
#include <cstdio>
1313
#include <cstdlib>
1414
#include <vector>
File renamed without changes.

src/api/c/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <af/dim4.hpp>
1111
#include <af/device.h>
1212
#include <af/version.h>
13-
#include <af/hapi.h>
13+
#include <af/backend.h>
1414
#include <backend.hpp>
1515
#include <platform.hpp>
1616
#include <Array.hpp>

src/api/c/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <af/index.h>
1111
// The following should be included using double quotes
12-
// to enable it's use in HAPI wrapper
12+
// to enable it's use in unified wrapper
1313
#include "err_common.hpp"
1414

1515
af_seq af_make_seq(double begin, double end, double step)

src/api/cpp/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <af/device.h>
1111
#include <af/compatible.h>
1212
#include <af/traits.hpp>
13-
#include <af/hapi.h>
13+
#include <af/backend.h>
1414
#include "error.hpp"
1515

1616
namespace af

0 commit comments

Comments
 (0)