Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 8 of 8) sorted by relevance

/libCEED/interface/
H A Dceed-jit-tools.c124 …d ceed, const char *source_file_path, CeedInt *num_file_paths, char ***file_paths, char **buffer) { in CeedLoadSourceToInitializedBuffer() argument
183 long current_size = strlen(*buffer); in CeedLoadSourceToInitializedBuffer()
186 CeedCall(CeedRealloc(current_size + copy_size + 2, buffer)); in CeedLoadSourceToInitializedBuffer()
187 memcpy(&(*buffer)[current_size], "\n", 2); in CeedLoadSourceToInitializedBuffer()
188 memcpy(&(*buffer)[current_size + 1], &temp_buffer[file_offset], copy_size); in CeedLoadSourceToInitializedBuffer()
189 memcpy(&(*buffer)[current_size + copy_size], "", 1); in CeedLoadSourceToInitializedBuffer()
208 long current_size = strlen(*buffer); in CeedLoadSourceToInitializedBuffer()
211 CeedCall(CeedRealloc(current_size + copy_size + 2, buffer)); in CeedLoadSourceToInitializedBuffer()
212 memcpy(&(*buffer)[current_size], "\n", 2); in CeedLoadSourceToInitializedBuffer()
213 memcpy(&(*buffer)[current_size + 1], &temp_buffer[file_offset], copy_size); in CeedLoadSourceToInitializedBuffer()
[all …]
H A Dceed-qfunction.c345 char *buffer = NULL; in CeedQFunctionLoadSourceToBuffer() local
348 CeedCall(CeedLoadSourceToBuffer(ceed, source_path, &buffer)); in CeedQFunctionLoadSourceToBuffer()
350 *source_buffer = buffer; in CeedQFunctionLoadSourceToBuffer()
/libCEED/include/ceed/jit-source/cuda/
H A Dcuda-shared-basis-tensor-at-points-templates.h145 CeedScalar buffer[Q_1D]; in InterpAtPoints2d() local
155 buffer[i] = 0.0; in InterpAtPoints2d()
157 buffer[i] += chebyshev_x[j] * data.slice[j + i * Q_1D]; in InterpAtPoints2d()
163 r_V[comp] += chebyshev_x[i] * buffer[i]; in InterpAtPoints2d()
175 CeedScalar buffer[Q_1D]; in InterpTransposeAtPoints2d() local
186 buffer[i] = chebyshev_x[i] * r_u; in InterpTransposeAtPoints2d()
197 … && data.t_id_y < Q_1D) atomicAdd_block(&data.slice[jj + ii * Q_1D], chebyshev_x[jj] * buffer[ii]); in InterpTransposeAtPoints2d()
214 CeedScalar buffer[Q_1D]; in GradAtPoints2d() local
226 buffer[i] = 0.0; in GradAtPoints2d()
228 buffer[i] += chebyshev_x[j] * data.slice[j + i * Q_1D]; in GradAtPoints2d()
[all …]
/libCEED/include/ceed/jit-source/hip/
H A Dhip-shared-basis-tensor-at-points-templates.h146 CeedScalar buffer[Q_1D]; in InterpAtPoints2d() local
156 buffer[i] = 0.0; in InterpAtPoints2d()
158 buffer[i] += chebyshev_x[j] * data.slice[j + i * Q_1D]; in InterpAtPoints2d()
164 r_V[comp] += chebyshev_x[i] * buffer[i]; in InterpAtPoints2d()
176 CeedScalar buffer[Q_1D]; in InterpTransposeAtPoints2d() local
187 buffer[i] = chebyshev_x[i] * r_u; in InterpTransposeAtPoints2d()
198 …< Q_1D && data.t_id_y < Q_1D) atomicAdd(&data.slice[jj + ii * Q_1D], chebyshev_x[jj] * buffer[ii]); in InterpTransposeAtPoints2d()
215 CeedScalar buffer[Q_1D]; in GradAtPoints2d() local
227 buffer[i] = 0.0; in GradAtPoints2d()
229 buffer[i] += chebyshev_x[j] * data.slice[j + i * Q_1D]; in GradAtPoints2d()
[all …]
/libCEED/include/ceed/
H A Djit-tools.h15 CEED_EXTERN int CeedLoadSourceToBuffer(Ceed ceed, const char *source_file_path, char **buffer);
17 char **buffer);
19 char **buffer);
/libCEED/python/
H A Dceed_basis.py179 buff = ffi.buffer(
210 buff = ffi.buffer(
239 buff = ffi.buffer(
268 buff = ffi.buffer(
H A Dceed_vector.py130 buff = ffi.buffer(
175 buff = ffi.buffer(
223 buff = ffi.buffer(
H A Dceed_qfunctioncontext.py125 buff = ffi.buffer(