Skip to content

Commit

Permalink
missing Ext
Browse files Browse the repository at this point in the history
  • Loading branch information
glou-nes committed Dec 16, 2024
1 parent 520f71f commit 50d7e8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ path = "lib/ReactantCore"
ReactantAbstractFFTsExt = "AbstractFFTs"
ReactantArrayInterfaceExt = "ArrayInterface"
ReactantNNlibExt = "NNlib"
ReactantSpecialFunctions = "SpecialFunctions"
ReactantSpecialFunctionsExt = "SpecialFunctions"
ReactantStatisticsExt = "Statistics"
ReactantYaoBlocksExt = "YaoBlocks"

Expand Down
28 changes: 6 additions & 22 deletions src/Reactant.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,12 @@ using Enzyme
struct ReactantABI <: Enzyme.EnzymeCore.ABI end

@static if isdefined(Core, :BFloat16)
const ReactantPrimitive = Union{
Bool,
Int8,
UInt8,
Int16,
UInt16,
Int32,
UInt32,
Int64,
UInt64,
Float16,
Core.BFloat16,
Float32,
Float64,
Complex{Float32},
Complex{Float64},
}
ReactantFloat = Union{Float16, BFloat16, Float32, Float64}
else
const ReactantPrimitive = Union{
ReactantFloat = Union{Float16, Float32, Float64}
end

const ReactantPrimitive = Union{
Bool,
Int8,
UInt8,
Expand All @@ -44,13 +31,10 @@ else
UInt32,
Int64,
UInt64,
Float16,
Float32,
Float64,
Complex{Float32},
Complex{Float64},
ReactantFloat...
}
end

abstract type RArray{T<:ReactantPrimitive,N} <: AbstractArray{T,N} end
abstract type RNumber{T<:ReactantPrimitive} <: Number end
Expand Down

0 comments on commit 50d7e8b

Please sign in to comment.