xref: /libCEED/rust/libceed-sys/c-src/backends/xsmm/ceed-xsmm.h (revision 20aaa36599896a4e0c99ecacce9cb6f6454a0caa)
18d713cf6Sjeremylt // Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC.
28d713cf6Sjeremylt // Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707.
38d713cf6Sjeremylt // All Rights reserved. See files LICENSE and NOTICE for details.
48d713cf6Sjeremylt //
58d713cf6Sjeremylt // This file is part of CEED, a collection of benchmarks, miniapps, software
68d713cf6Sjeremylt // libraries and APIs for efficient high-order finite element and spectral
78d713cf6Sjeremylt // element discretizations for exascale applications. For more information and
88d713cf6Sjeremylt // source code availability see http://github.com/ceed.
98d713cf6Sjeremylt //
108d713cf6Sjeremylt // The CEED research is supported by the Exascale Computing Project 17-SC-20-SC,
118d713cf6Sjeremylt // a collaborative effort of two U.S. Department of Energy organizations (Office
128d713cf6Sjeremylt // of Science and the National Nuclear Security Administration) responsible for
138d713cf6Sjeremylt // the planning and preparation of a capable exascale ecosystem, including
148d713cf6Sjeremylt // software, applications, hardware, advanced system engineering and early
158d713cf6Sjeremylt // testbed platforms, in support of the nation's exascale computing imperative.
168d713cf6Sjeremylt 
178d713cf6Sjeremylt #include <ceed-backend.h>
18*20aaa365SJeremy L Thompson #include <ceed-hash.h>
193d0fd664Sjeremylt #include <libxsmm.h>
208d713cf6Sjeremylt #include <string.h>
218d75ea1bSjeremylt #include <math.h>
228d713cf6Sjeremylt 
23*20aaa365SJeremy L Thompson // Instantiate khash structs and methods
24*20aaa365SJeremy L Thompson CeedHashIJKLMInit(m32, libxsmm_dmmfunction)
25*20aaa365SJeremy L Thompson 
263d0fd664Sjeremylt typedef struct {
273d0fd664Sjeremylt   bool tensorbasis;
28*20aaa365SJeremy L Thompson   CeedInt P, Q, dim;
29*20aaa365SJeremy L Thompson   khash_t(m32) *lookup;
303d0fd664Sjeremylt } CeedTensorContract_Xsmm;
313d0fd664Sjeremylt 
32c71e1dcdSjeremylt CEED_INTERN int CeedTensorContractCreate_Xsmm(CeedBasis basis,
33c71e1dcdSjeremylt     CeedTensorContract contract);
34