Home
last modified time | relevance | path

Searched refs:MEM_HOST (Results 1 – 16 of 16) sorted by relevance

/libCEED/python/
H A Dceed_vector.py12 from .ceed_constants import MEM_HOST, USE_POINTER, COPY_VALUES, NORM_2, scalar_types
73 def set_array(self, array, memtype=MEM_HOST, cmode=COPY_VALUES):
90 if memtype == MEM_HOST:
105 def get_array(self, memtype=MEM_HOST):
128 if memtype == MEM_HOST:
150 def get_array_read(self, memtype=MEM_HOST):
173 if memtype == MEM_HOST:
197 def get_array_write(self, memtype=MEM_HOST):
221 if memtype == MEM_HOST:
266 def array(self, *shape, memtype=MEM_HOST):
[all …]
H A Dceed_qfunctioncontext.py12 from .ceed_constants import MEM_HOST, USE_POINTER, COPY_VALUES, scalar_types
63 def set_data(self, data, memtype=MEM_HOST, cmode=COPY_VALUES):
80 if memtype == MEM_HOST:
99 def get_data(self, memtype=MEM_HOST):
123 if memtype == MEM_HOST:
160 def data(self, *shape, memtype=MEM_HOST):
H A Dceed_elemrestriction.py12 from .ceed_constants import REQUEST_IMMEDIATE, REQUEST_ORDERED, MEM_HOST, USE_POINTER, COPY_VALUES,…
177 memtype=MEM_HOST, cmode=COPY_VALUES):
210 orients, memtype=MEM_HOST, cmode=COPY_VALUES):
249 curl_orients, memtype=MEM_HOST, cmode=COPY_VALUES):
315 offsets, memtype=MEM_HOST, cmode=COPY_VALUES):
376 offsets, orients, memtype=MEM_HOST, cmode=COPY_VALUES):
407 offsets, curl_orients, memtype=MEM_HOST, cmode=COPY_VALUES):
H A Dceed_constants.py15 MEM_HOST = lib.CEED_MEM_HOST variable
17 mem_types = {MEM_HOST: "host",
H A Dceed.py100 memtype = ffi.new("CeedMemType *", MEM_HOST)
/libCEED/julia/LibCEED.jl/src/
H A DCeedVector.jl33 setarray!(obj, MEM_HOST, COPY_VALUES, C_NULL)
44 witharray_read(v, MEM_HOST) do arr
48 Base.show(io::IO, v::CeedVector) = witharray_read(a -> show(io, a), v, MEM_HOST)
166 mtype = MEM_HOST
184 @witharray(v_arr=v, [size=(dims...)], [mtype=MEM_HOST], body)
187 with name `v_arr`. If the [`memory type`](@ref MemType) `mtype` is not provided, `MEM_HOST`
211 @witharray_read(v_arr=v, [size=(dims...)], [mtype=MEM_HOST], body)
238 CeedVector(c::Ceed, v2::AbstractVector; mtype=MEM_HOST, cmode=COPY_VALUES)
244 function CeedVector(c::Ceed, v2::AbstractVector; mtype=MEM_HOST, cmode=COPY_VALUES)
261 witharray(f, v::CeedVector, mtype=MEM_HOST)
[all …]
H A DContext.jl18 Context(ceed::Ceed, data; mtype=MEM_HOST, cmode=USE_POINTER)
28 function Context(c::Ceed, data; mtype=MEM_HOST, cmode=USE_POINTER)
H A DGlobals.jl42 One of `MEM_HOST` or `MEM_DEVICE`.
45 const MEM_HOST = C.CEED_MEM_HOST constant
H A DElemRestriction.jl43 mtype::MemType=MEM_HOST,
78 mtype::MemType=MEM_HOST,
107 mtype::MemType=MEM_HOST,
145 mtype::MemType=MEM_HOST,
175 mtype::MemType=MEM_HOST,
215 mtype::MemType=MEM_HOST,
H A DCeed.jl95 Returns the preferred [`MemType`](@ref) (either `MEM_HOST` or `MEM_DEVICE`) of the given
H A DLibCEED.jl43 MEM_HOST,
/libCEED/julia/LibCEED.jl/test/
H A Druntests.jl45 @test get_preferred_memtype(c) == MEM_HOST
60 @test_throws Exception set_data!(ctx, MEM_HOST, OWN_POINTER, data)
78 @test @witharray_read(a = v2, mtype = MEM_HOST, a == v1)
87 @test @witharray(a = v, mtype = MEM_HOST, all(a .== CeedScalar(1.0)./v1))
101 setarray!(v, MEM_HOST, USE_POINTER, v1)
102 syncarray!(v, MEM_HOST)
104 p = takearray!(v, MEM_HOST)
/libCEED/julia/LibCEED.jl/examples/
H A Dex2-surface.jl155 sa = witharray_read(x -> sum(abs, x), v, MEM_HOST)
H A Dex1-volume.jl142 vol = witharray_read(sum, v, MEM_HOST)
H A Dex3-volume.jl181 vol = witharray_read(sum, v, MEM_HOST)
/libCEED/julia/LibCEED.jl/docs/src/
H A Dindex.md87 vol = witharray_read(sum, v, MEM_HOST)