We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
aligned_sizeof
1 parent d3ce45c commit c8c2142Copy full SHA for c8c2142
src/CUDA.jl
@@ -54,12 +54,8 @@ using Printf
54
# - Base.aligned_sizeof is the size of an object in an array/inline alloced
55
# Both of them are equivalent for immutable objects, but differ for mutable singtons and Symbol
56
# We use `aligned_sizeof` since we care about the size of a type in an array
57
-@static if VERSION < v"1.11.0"
58
- @generated function aligned_sizeof(::Type{T}) where T
59
- return :($(Base.aligned_sizeof(T)))
60
- end
61
-else
62
- import Base: aligned_sizeof
+@generated function aligned_sizeof(::Type{T}) where T
+ return :($(Base.aligned_sizeof(T)))
63
end
64
65
## source code includes
0 commit comments