xtensor-stack / xtensor-benchmark

Easy to use benchmarks for linear algebra frameworks
BSD 3-Clause "New" or "Revised" License
24 stars 8 forks source link

CONDA_PREFIX? #7

Closed benman1 closed 6 years ago

benman1 commented 6 years ago

Hi I executed the conda install (conda env create -f environment.yml ), but cmake is not picking up eigen, armadillo, etc.

          COMPILING WITH
======================================

COMPILER        : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
FLAGS           :  -Ofast -ffast-math -march=native -std=c++14 -pthread

Found xtensor   : /Users/ben/anaconda3/include
Found xsimd     : /Users/ben/anaconda3/include

-- Configuring done
-- Generating done

In the cmake_install.cmake file I see the conda environment correctly recognised:

# Install script for directory: /Users/ben/xtensor-benchmark

# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
  set(CMAKE_INSTALL_PREFIX "/Users/ben/anaconda3/envs/xtensor-benchmark")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")

Pointers appreciated. Thank you!

floatdrop commented 6 years ago

Check these options:

https://github.com/QuantStack/xtensor-benchmark/blob/8bc9d658cb77b6c3e5a59dcafa35f97aeff05c0b/CMakeLists.txt#L88-L92

Pass corresponding options to cmake to test against them.

wolfv commented 6 years ago

Thanks @floatdrop, sorry @benman1 for not replying for so long.

It's correct, you need to manually enable testing against these libraries now (you can also use the ccmake tool if you have it).