| /libCEED/include/ceed/ |
| H A D | fortran.h | 1 ! Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 ! All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 ! SPDX-License-Identifier: BSD-2-Clause 8 !----------------------------------------------------------------------- 10 !----------------------------------------------------------------------- 12 !----------------------------------------------------------------------- 14 !----------------------------------------------------------------------- 16 !----------------------------------------------------------------------- 24 !----------------------------------------------------------------------- 26 !----------------------------------------------------------------------- [all …]
|
| /libCEED/backends/cuda-ref/kernels/ |
| H A D | cuda-ref-vector.cu | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 11 //------------------------------------------------------------------------------ 13 //------------------------------------------------------------------------------ 17 if (index < stop - start) { in copyStridedK() 22 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------ 27 const CeedSize copy_size = stop - start; in CeedDeviceCopyStrided_Cuda() 35 //------------------------------------------------------------------------------ [all …]
|
| /libCEED/backends/hip-ref/kernels/ |
| H A D | hip-ref-vector.hip.cpp | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 11 //------------------------------------------------------------------------------ 13 //------------------------------------------------------------------------------ 18 if ((index - start) % step == 0) vec_copy[index] = vec[index]; in copyStridedK() 22 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------ 35 //------------------------------------------------------------------------------ 37 //------------------------------------------------------------------------------ [all …]
|
| /libCEED/backends/ref/ |
| H A D | ceed-ref-vector.c | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 13 #include "ceed-ref.h" 15 //------------------------------------------------------------------------------ 17 //------------------------------------------------------------------------------ 23 *has_valid_array = impl->array; in CeedVectorHasValidArray_Ref() 27 //------------------------------------------------------------------------------ 29 //------------------------------------------------------------------------------ 35 *has_borrowed_array_of_type = impl->array_borrowed; in CeedVectorHasBorrowedArrayOfType_Ref() [all …]
|
| H A D | ceed-ref-qfunctioncontext.c | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 13 #include "ceed-ref.h" 15 //------------------------------------------------------------------------------ 17 //------------------------------------------------------------------------------ 22 *has_valid_data = impl->data; in CeedQFunctionContextHasValidData_Ref() 26 //------------------------------------------------------------------------------ 28 //------------------------------------------------------------------------------ 34 *has_borrowed_data_of_type = impl->data_borrowed; in CeedQFunctionContextHasBorrowedDataOfType_Ref() [all …]
|
| /libCEED/backends/sycl-ref/kernels/ |
| H A D | sycl-ref-vector.cpp | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other 2 // CEED contributors. All Rights Reserved. See the top-level LICENSE and NOTICE 5 // SPDX-License-Identifier: BSD-2-Clause 12 //------------------------------------------------------------------------------ 14 //------------------------------------------------------------------------------ 22 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------ 35 //------------------------------------------------------------------------------ 37 //------------------------------------------------------------------------------ 42 if (fabs(vec[index]) > 1E-16) vec[index] = 1. / vec[index]; in rcpValueK() [all …]
|
| /libCEED/python/tests/ |
| H A D | test-1-vector.py | 1 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors 2 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 # SPDX-License-Identifier: BSD-2-Clause 18 # ------------------------------------------------------------------------------- 20 # ------------------------------------------------------------------------------- 28 # ------------------------------------------------------------------------------- 30 # ------------------------------------------------------------------------------- 46 # ------------------------------------------------------------------------------- 48 # ------------------------------------------------------------------------------- 72 # ------------------------------------------------------------------------------- [all …]
|
| H A D | test-0-ceed.py | 1 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors 2 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 # SPDX-License-Identifier: BSD-2-Clause 14 # ------------------------------------------------------------------------------- 16 # ------------------------------------------------------------------------------- 22 # ------------------------------------------------------------------------------- 24 # ------------------------------------------------------------------------------- 34 # ------------------------------------------------------------------------------- 36 # ------------------------------------------------------------------------------- 46 # ------------------------------------------------------------------------------- [all …]
|
| /libCEED/include/ceed/jit-source/cuda/ |
| H A D | cuda-gen-templates.h | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 12 //------------------------------------------------------------------------------ 14 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------ 22 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------ 25 // L-vector -> single point 26 //------------------------------------------------------------------------------ [all …]
|
| H A D | cuda-shared-basis-tensor-templates.h | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 12 //------------------------------------------------------------------------------ 14 //------------------------------------------------------------------------------ 16 //------------------------------------------------------------------------------ 18 //------------------------------------------------------------------------------ 32 //------------------------------------------------------------------------------ 34 //------------------------------------------------------------------------------ 48 //------------------------------------------------------------------------------ [all …]
|
| H A D | cuda-shared-basis-read-write-templates.h | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 12 //------------------------------------------------------------------------------ 14 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------ 22 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------ 25 // E-vector -> single element 26 //------------------------------------------------------------------------------ [all …]
|
| /libCEED/include/ceed/jit-source/hip/ |
| H A D | hip-gen-templates.h | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 12 //------------------------------------------------------------------------------ 14 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------ 22 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------ 25 // L-vector -> single point 26 //------------------------------------------------------------------------------ [all …]
|
| H A D | hip-shared-basis-tensor-templates.h | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 12 //------------------------------------------------------------------------------ 14 //------------------------------------------------------------------------------ 16 //------------------------------------------------------------------------------ 18 //------------------------------------------------------------------------------ 32 //------------------------------------------------------------------------------ 34 //------------------------------------------------------------------------------ 48 //------------------------------------------------------------------------------ [all …]
|
| H A D | hip-shared-basis-read-write-templates.h | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 12 //------------------------------------------------------------------------------ 14 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------ 22 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------ 25 // E-vector -> single element 26 //------------------------------------------------------------------------------ [all …]
|
| /libCEED/backends/sycl-ref/ |
| H A D | ceed-sycl-vector.sycl.cpp | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 15 #include "ceed-sycl-ref.hpp" 17 //------------------------------------------------------------------------------ 19 //------------------------------------------------------------------------------ 28 *need_sync = has_valid_array && !impl->h_array; in CeedVectorNeedSync_Sycl() 31 *need_sync = has_valid_array && !impl->d_array; in CeedVectorNeedSync_Sycl() 37 //------------------------------------------------------------------------------ 39 //------------------------------------------------------------------------------ [all …]
|
| H A D | ceed-sycl-ref-qfunctioncontext.sycl.cpp | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 14 #include "ceed-sycl-ref.hpp" 16 //------------------------------------------------------------------------------ 18 //------------------------------------------------------------------------------ 28 CeedCheck(impl->h_data, ceed, CEED_ERROR_BACKEND, "No valid host data to sync to device"); in CeedQFunctionContextSyncH2D_Sycl() 32 if (impl->d_data_borrowed) { in CeedQFunctionContextSyncH2D_Sycl() 33 impl->d_data = impl->d_data_borrowed; in CeedQFunctionContextSyncH2D_Sycl() 34 } else if (impl->d_data_owned) { in CeedQFunctionContextSyncH2D_Sycl() [all …]
|
| /libCEED/include/ceed/jit-source/sycl/ |
| H A D | sycl-shared-basis-tensor-templates.h | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 12 //------------------------------------------------------------------------------ 14 //------------------------------------------------------------------------------ 16 //------------------------------------------------------------------------------ 18 //------------------------------------------------------------------------------ 35 //------------------------------------------------------------------------------ 37 //------------------------------------------------------------------------------ 54 //------------------------------------------------------------------------------ [all …]
|
| H A D | sycl-shared-basis-read-write-templates.h | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 12 //------------------------------------------------------------------------------ 14 //------------------------------------------------------------------------------ 21 //------------------------------------------------------------------------------ 23 //------------------------------------------------------------------------------ 25 //------------------------------------------------------------------------------ 26 // E-vector -> single element 27 //------------------------------------------------------------------------------ [all …]
|
| H A D | sycl-gen-templates.h | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 17 //------------------------------------------------------------------------------ 19 //------------------------------------------------------------------------------ 26 //------------------------------------------------------------------------------ 28 //------------------------------------------------------------------------------ 30 //------------------------------------------------------------------------------ 31 // L-vector -> E-vector, offsets provided 32 //------------------------------------------------------------------------------ [all …]
|
| /libCEED/backends/cuda-ref/ |
| H A D | ceed-cuda-ref-vector.c | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 15 #include "../cuda/ceed-cuda-common.h" 16 #include "ceed-cuda-ref.h" 18 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------ 29 *need_sync = has_valid_array && !impl->h_array; in CeedVectorNeedSync_Cuda() 32 *need_sync = has_valid_array && !impl->d_array; in CeedVectorNeedSync_Cuda() 38 //------------------------------------------------------------------------------ [all …]
|
| H A D | ceed-cuda-ref-qfunctioncontext.c | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 14 #include "../cuda/ceed-cuda-common.h" 15 #include "ceed-cuda-ref.h" 17 //------------------------------------------------------------------------------ 19 //------------------------------------------------------------------------------ 28 CeedCheck(impl->h_data, ceed, CEED_ERROR_BACKEND, "No valid host data to sync to device"); in CeedQFunctionContextSyncH2D_Cuda() 31 if (impl->d_data_borrowed) { in CeedQFunctionContextSyncH2D_Cuda() 32 impl->d_data = impl->d_data_borrowed; in CeedQFunctionContextSyncH2D_Cuda() [all …]
|
| /libCEED/backends/hip-ref/ |
| H A D | ceed-hip-ref-qfunctioncontext.c | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 14 #include "../hip/ceed-hip-common.h" 15 #include "ceed-hip-ref.h" 17 //------------------------------------------------------------------------------ 19 //------------------------------------------------------------------------------ 28 CeedCheck(impl->h_data, ceed, CEED_ERROR_BACKEND, "No valid host data to sync to device"); in CeedQFunctionContextSyncH2D_Hip() 31 if (impl->d_data_borrowed) { in CeedQFunctionContextSyncH2D_Hip() 32 impl->d_data = impl->d_data_borrowed; in CeedQFunctionContextSyncH2D_Hip() [all …]
|
| H A D | ceed-hip-ref-vector.c | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 15 #include "../hip/ceed-hip-common.h" 16 #include "ceed-hip-ref.h" 18 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------ 29 *need_sync = has_valid_array && !impl->h_array; in CeedVectorNeedSync_Hip() 32 *need_sync = has_valid_array && !impl->d_array; in CeedVectorNeedSync_Hip() 38 //------------------------------------------------------------------------------ [all …]
|
| /libCEED/ |
| H A D | .gitlab-ci.yml | 1 # ---------------------------------------------------------------------------------------- 3 # ---------------------------------------------------------------------------------------- 5 - test:cpu-and-tidy 6 - test:gpu-and-float 13 # ---------------------------------------------------------------------------------------- 15 # ---------------------------------------------------------------------------------------- 16 noether-asan: 17 stage: test:cpu-and-tidy 19 - cpu 24 - export COVERAGE=0 CC=gcc CXX=g++ FC=gfortran [all …]
|
| /libCEED/backends/memcheck/ |
| H A D | ceed-memcheck-vector.c | 1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 4 // SPDX-License-Identifier: BSD-2-Clause 16 #include "ceed-memcheck.h" 18 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------ 25 *has_valid_array = !!impl->array_allocated; in CeedVectorHasValidArray_Memcheck() 29 //------------------------------------------------------------------------------ 31 //------------------------------------------------------------------------------ 38 *has_borrowed_array_of_type = !!impl->array_borrowed; in CeedVectorHasBorrowedArrayOfType_Memcheck() [all …]
|