Skip to content

Commit

Permalink
Fix warning for libCEED device specification
Browse files Browse the repository at this point in the history
Also add a missing class template instantiaton.
  • Loading branch information
sebastiangrimberg committed May 4, 2023
1 parent 41afb22 commit 679e2de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions general/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ void Array2D<T>::Print(std::ostream &os, int width_)
}
}

template class Array<bool>;
template class Array<char>;
template class Array<int>;
template class Array<long long>;
Expand Down
6 changes: 3 additions & 3 deletions general/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,14 +481,14 @@ static void OccaDeviceSetup(const int dev)
#endif
}

static void CeedDeviceSetup(const char* ceed_spec)
static void CeedDeviceSetup(const char *ceed_spec)
{
#ifdef MFEM_USE_CEED
CeedInit(ceed_spec, &internal::ceed);
const char *ceed_backend;
CeedGetResource(internal::ceed, &ceed_backend);
if (strcmp(ceed_spec, ceed_backend) && strcmp(ceed_spec, "/cpu/self") &&
strcmp(ceed_spec, "/gpu/hip"))
size_t ceed_spec_len = strlen(ceed_spec);
if (strncmp(ceed_spec, ceed_backend, ceed_spec_len))
{
mfem::out << std::endl << "WARNING!!!\n"
"libCEED is not using the requested backend!!!\n"
Expand Down

0 comments on commit 679e2de

Please sign in to comment.