From 527fa067c4874f921b52191f71d10e8d516871eb Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 10 May 2019 11:12:55 +0200 Subject: community/arrayfire: redone the dim_t casting patches --- .../arrayfire/arrayfire-full-3.6.0-dim-cast.patch | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 community/arrayfire/arrayfire-full-3.6.0-dim-cast.patch (limited to 'community/arrayfire/arrayfire-full-3.6.0-dim-cast.patch') diff --git a/community/arrayfire/arrayfire-full-3.6.0-dim-cast.patch b/community/arrayfire/arrayfire-full-3.6.0-dim-cast.patch deleted file mode 100644 index d0ba0faa..00000000 --- a/community/arrayfire/arrayfire-full-3.6.0-dim-cast.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -rauN arrayfire-full-3.6.0/src/api/c/homography.cpp arrayfire-full-3.6.0-dim-cast-patch/src/api/c/homography.cpp ---- arrayfire-full-3.6.0/src/api/c/homography.cpp 2018-05-02 20:53:08.000000000 +0200 -+++ arrayfire-full-3.6.0-dim-cast-patch/src/api/c/homography.cpp 2018-05-26 17:12:16.120826525 +0200 -@@ -30,7 +30,7 @@ - Array bestH = createEmptyArray(af::dim4(3, 3)); - af_array initial; - unsigned d = (iterations + 256 - 1) / 256; -- dim_t rdims[] = {4, d * 256}; -+ dim_t rdims[] = {4, static_cast(d) * 256}; - AF_CHECK(af_randu(&initial, 2, rdims, f32)); - inliers = homography(bestH, - getArray(x_src), getArray(y_src), -diff -rauN arrayfire-full-3.6.0/src/backend/opencl/kernel/ireduce.hpp arrayfire-full-3.6.0-dim-cast-patch/src/backend/opencl/kernel/ireduce.hpp ---- arrayfire-full-3.6.0/src/backend/opencl/kernel/ireduce.hpp 2018-05-02 20:53:08.000000000 +0200 -+++ arrayfire-full-3.6.0-dim-cast-patch/src/backend/opencl/kernel/ireduce.hpp 2018-05-26 17:11:37.880234104 +0200 -@@ -361,7 +361,7 @@ - - uint groups_x = divup(in.info.dims[0], threads_x * REPEAT); - uint groups_y = divup(in.info.dims[1], threads_y); -- Array tmp = createEmptyArray({groups_x, in.info.dims[1], in.info.dims[2], in.info.dims[3]}); -+ Array tmp = createEmptyArray({static_cast(groups_x), in.info.dims[1], in.info.dims[2], in.info.dims[3]}); - - int tmp_elements = tmp.elements(); - cl::Buffer *tidx = bufferAlloc(tmp_elements * sizeof(uint)); -diff -rauN arrayfire-full-3.6.0/src/backend/opencl/kernel/reduce.hpp arrayfire-full-3.6.0-dim-cast-patch/src/backend/opencl/kernel/reduce.hpp ---- arrayfire-full-3.6.0/src/backend/opencl/kernel/reduce.hpp 2018-05-02 20:53:08.000000000 +0200 -+++ arrayfire-full-3.6.0-dim-cast-patch/src/backend/opencl/kernel/reduce.hpp 2018-05-26 17:11:55.600508641 +0200 -@@ -301,7 +301,7 @@ - - uint groups_x = divup(in.info.dims[0], threads_x * REPEAT); - uint groups_y = divup(in.info.dims[1], threads_y); -- Array tmp = createEmptyArray({groups_x, in.info.dims[1], in.info.dims[2], in.info.dims[3]}); -+ Array tmp = createEmptyArray({static_cast(groups_x), in.info.dims[1], in.info.dims[2], in.info.dims[3]}); - - int tmp_elements = tmp.elements(); - -- cgit v1.2.3-70-g09d2