Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/CUDA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,8 @@ using Printf
# - Base.aligned_sizeof is the size of an object in an array/inline alloced
# Both of them are equivalent for immutable objects, but differ for mutable singtons and Symbol
# We use `aligned_sizeof` since we care about the size of a type in an array
@static if VERSION < v"1.11.0"
@generated function aligned_sizeof(::Type{T}) where T
return :($(Base.aligned_sizeof(T)))
end
else
import Base: aligned_sizeof
@generated function aligned_sizeof(::Type{T}) where T
return :($(Base.aligned_sizeof(T)))
end

## source code includes
Expand Down