Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Commit 8ff911e

Browse files
authored
Merge pull request #6 from JuliaGPU/sd/newlayout
new struct layout
2 parents f780bab + bb7fd30 commit 8ff911e

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

REQUIRE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ GPUArrays 0.2.0
55
StaticArrays
66
ColorTypes
77

8-
Transpiler 0.4.2
8+
Transpiler 0.4.3
99
Sugar 0.4.1
1010
Matcha 0.1.1
1111

12-
OpenCL 0.6.1 #proper packed pointer free
12+
OpenCL 0.7.0 #proper packed pointer free
1313
CLBLAS 1.1.0
1414
CLFFT 0.4.0 # 0.5.0

src/compilation.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ using Sugar: isfunction
99

1010
using Base: tail
1111

12-
1312
function _gpu_call(f, A::CLArray, args::Tuple, blocks_threads::Tuple{T, T}) where T <: NTuple{N, Integer} where N
1413
ctx = context(A)
1514
_args = (KernelState(), args...) # CLArrays "state"
@@ -250,7 +249,6 @@ function CLFunction(f::F, args::T, ctx = global_context()) where {T, F}
250249
get!(compiled_functions, (ctx.id, f, cltypes)) do # TODO make this faster
251250
method = CLMethod((f, cltypes))
252251
source, fname, ptr_extract = assemble_kernel(method)
253-
# println(source)
254252
options = "-cl-denorms-are-zero -cl-mad-enable -cl-unsafe-math-optimizations"
255253
if version > v"1.2"
256254
options *= " -cl-std=CL1.2"

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ for dev in CLArrays.devices()
3333
end
3434
end
3535

36+
# Indexing with
37+
# Issue
38+
# ([CartesianIndex(2,2), CartesianIndex(2,1)],) # Array{CartesianIndex} # FAIL
39+
3640
# #The above is equal to:
3741
# Typ = CLArray
3842
# GPUArrays.allowslow(false)
@@ -128,3 +132,4 @@ end
128132
# # out[15] = sizeof(x15)
129133
# return
130134
# end
135+

0 commit comments

Comments
 (0)