Subject: | compilation issues: AI |
Date: | Wed, 11 Dec 2019 20:18:56 +0200 |
To: | bug-AI-NNVMCAPI [...] rt.cpan.org |
From: | andreashad2 <andreashad2 [...] googlemail.com> |
The hard-coded path to nnvm's includes path in Makefile.PL cause
compilation to fail in my system (fedora 30, kernel 5.3.13, perl 5.28.2)
I removed completely the entry
INC => '../../3rdparty/tvm/nnvm/include/nnvm'
and changed nnvm.i
#include <c_api.h>
to
#include <nnvm/c_api.h>
In this way, if nnvm's include files are in a standard include dir you
do not need to search for them at all.
In case they are in non-standard location, or if nnvm is not installed
then personally I would find it better to warn the user about it
suggesting to first install nnvm.
bliako@cpan.org