From c439c8af77b674da78d1f40fbbfc036ce81b43ba Mon Sep 17 00:00:00 2001 From: frostedoyster Date: Wed, 30 Oct 2024 18:53:14 +0100 Subject: [PATCH] Check equality of int types --- src/KOKKOS/metatensor_system_kokkos.cpp | 1 - src/KOKKOS/pair_metatensor_kokkos.cpp | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/KOKKOS/metatensor_system_kokkos.cpp b/src/KOKKOS/metatensor_system_kokkos.cpp index 8eccab9c71c..5b5daac72dc 100644 --- a/src/KOKKOS/metatensor_system_kokkos.cpp +++ b/src/KOKKOS/metatensor_system_kokkos.cpp @@ -28,7 +28,6 @@ #include "atom_kokkos.h" #include -#include #ifndef KOKKOS_ENABLE_CUDA // fake Kokkos::Cuda for non-CUDA builds diff --git a/src/KOKKOS/pair_metatensor_kokkos.cpp b/src/KOKKOS/pair_metatensor_kokkos.cpp index 3fd275f9a5f..29710c925e7 100644 --- a/src/KOKKOS/pair_metatensor_kokkos.cpp +++ b/src/KOKKOS/pair_metatensor_kokkos.cpp @@ -47,7 +47,10 @@ #include "metatensor_system_kokkos.h" -#include +// LAMMPS uses `LAMMPS_NS::tagint` and `int` for tags and neighbor lists, respectively. +// For the moment, we require both to be int32_t for this interface +static_assert(std::is_same_v, "Error: LAMMPS_INT must be int32_t to compile metatensor/kk"); +static_assert(std::is_same_v, "Error: int must be int32_t to compile metatensor/kk"); #ifndef KOKKOS_ENABLE_CUDA namespace Kokkos {