-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from JuliaGPU/tb/cleanups
Various clean-ups
- Loading branch information
Showing
26 changed files
with
276 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
coverage: | ||
ignore: | ||
- "lib" | ||
- "lib/lib*.jl" | ||
- "src/kernels" | ||
status: | ||
patch: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module cl | ||
|
||
export CLObject, CLString | ||
|
||
abstract type CLObject end | ||
|
||
Base.hash(x::CLObject) = hash(pointer(x)) | ||
Base.isequal(x::T, y::T) where {T <: CLObject} = Base.hash(x) == Base.hash(y) | ||
Base.:(==)(x::T, y::T) where {T <: CLObject} = Base.hash(x) == Base.hash(y) | ||
|
||
# The arrays contain a nullbyte that we pop first | ||
function CLString(v::Array{Cchar}) | ||
pop!(v) | ||
String(reinterpret(UInt8, v)) | ||
end | ||
|
||
include("api.jl") | ||
|
||
# API wrappers | ||
include("error.jl") | ||
include("platform.jl") | ||
include("device.jl") | ||
include("context.jl") | ||
include("queue.jl") | ||
include("event.jl") | ||
include("memory.jl") | ||
include("buffer.jl") | ||
include("program.jl") | ||
include("kernel.jl") | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.