Skip to content

Commit

Permalink
Check equality of int types
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster committed Oct 30, 2024
1 parent 82aec56 commit 033082e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/KOKKOS/metatensor_system_kokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "atom_kokkos.h"

#include <torch/cuda.h>
#include <chrono>

#ifndef KOKKOS_ENABLE_CUDA
// fake Kokkos::Cuda for non-CUDA builds
Expand Down
5 changes: 4 additions & 1 deletion src/KOKKOS/pair_metatensor_kokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@

#include "metatensor_system_kokkos.h"

#include <chrono>
// 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<LAMMPS_NS::tagint, int32_t>, "Error: LAMMPS_NS::tagint must be int32_t to compile metatensor/kk");
static_assert(std::is_same_v<int, int32_t>, "Error: int must be int32_t to compile metatensor/kk");

#ifndef KOKKOS_ENABLE_CUDA
namespace Kokkos {
Expand Down

0 comments on commit 033082e

Please sign in to comment.