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

Commit

Permalink
Merge pull request #6 from JuliaGPU/sd/newlayout
Browse files Browse the repository at this point in the history
new struct layout
  • Loading branch information
SimonDanisch authored Oct 31, 2017
2 parents f780bab + bb7fd30 commit 8ff911e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ GPUArrays 0.2.0
StaticArrays
ColorTypes

Transpiler 0.4.2
Transpiler 0.4.3
Sugar 0.4.1
Matcha 0.1.1

OpenCL 0.6.1 #proper packed pointer free
OpenCL 0.7.0 #proper packed pointer free
CLBLAS 1.1.0
CLFFT 0.4.0 # 0.5.0
2 changes: 0 additions & 2 deletions src/compilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ using Sugar: isfunction

using Base: tail


function _gpu_call(f, A::CLArray, args::Tuple, blocks_threads::Tuple{T, T}) where T <: NTuple{N, Integer} where N
ctx = context(A)
_args = (KernelState(), args...) # CLArrays "state"
Expand Down Expand Up @@ -250,7 +249,6 @@ function CLFunction(f::F, args::T, ctx = global_context()) where {T, F}
get!(compiled_functions, (ctx.id, f, cltypes)) do # TODO make this faster
method = CLMethod((f, cltypes))
source, fname, ptr_extract = assemble_kernel(method)
# println(source)
options = "-cl-denorms-are-zero -cl-mad-enable -cl-unsafe-math-optimizations"
if version > v"1.2"
options *= " -cl-std=CL1.2"
Expand Down
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ for dev in CLArrays.devices()
end
end

# Indexing with
# Issue
# ([CartesianIndex(2,2), CartesianIndex(2,1)],) # Array{CartesianIndex} # FAIL

# #The above is equal to:
# Typ = CLArray
# GPUArrays.allowslow(false)
Expand Down Expand Up @@ -128,3 +132,4 @@ end
# # out[15] = sizeof(x15)
# return
# end

0 comments on commit 8ff911e

Please sign in to comment.