dice-group / hypertrie

A flexible data structure for low-rank (≤ 5), sparse tensors supporting slices by any dimension and Einstein summation (einsum).
https://tentris.dice-research.org/
Apache License 2.0
14 stars 4 forks source link

Compilation of tests not possible without Pytorch #88

Open LukasKerk opened 3 years ago

LukasKerk commented 3 years ago

I configured CMake with -Dhypertrie_BUILD_TESTS=ON. The readme states that this would only build the tests that do not need Pytorch. However I get the build error message

<...>/hypertrie/tests/TestEinsum.cpp:14:10: fatal error: torch/torch.h: Datei oder Verzeichnis nicht gefunden <file or folder not found>
   14 | #include <torch/torch.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
LukasKerk commented 3 years ago

System information

os: Ubuntu 20.04.2 LTS cmake: 3.16.3 conan: 1.37.1

cmake Configuration output:

  [settings]
  arch=x86_64
  arch_build=x86_64
  build_type=Release
  compiler=gcc
  compiler.libcxx=libstdc++11
  compiler.version=9
  os=Linux
  os_build=Linux