NVlabs / cule

CuLE: A CUDA port of the Atari Learning Environment (ALE)
BSD 3-Clause "New" or "Revised" License
232 stars 35 forks source link

cule/atari/flags.hpp: No such file or directory #1

Closed dniku closed 5 years ago

dniku commented 5 years ago

I could not build the project using the nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 Docker image. Here are the commands I ran:

nvidia-docker run --rm -it nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
apt install git python3-dev python3-setuptools python3-pip
pip3 install torch
cd ~ && git clone --recursive https://github.com/NVlabs/cule && cd cule
python3 setup.py install

Output:

running install
running bdist_egg
running egg_info
creating torchcule.egg-info
writing torchcule.egg-info/PKG-INFO
writing dependency_links to torchcule.egg-info/dependency_links.txt
writing requirements to torchcule.egg-info/requires.txt
writing top-level names to torchcule.egg-info/top_level.txt
writing manifest file 'torchcule.egg-info/SOURCES.txt'
reading manifest file 'torchcule.egg-info/SOURCES.txt'
writing manifest file 'torchcule.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/torchcule
copying torchcule/__init__.py -> build/lib.linux-x86_64-3.6/torchcule
creating build/lib.linux-x86_64-3.6/examples
copying examples/__init__.py -> build/lib.linux-x86_64-3.6/examples
creating build/lib.linux-x86_64-3.6/torchcule/atari
copying torchcule/atari/rom.py -> build/lib.linux-x86_64-3.6/torchcule/atari
copying torchcule/atari/env.py -> build/lib.linux-x86_64-3.6/torchcule/atari
copying torchcule/atari/__init__.py -> build/lib.linux-x86_64-3.6/torchcule/atari
creating build/lib.linux-x86_64-3.6/examples/utils
copying examples/utils/launcher.py -> build/lib.linux-x86_64-3.6/examples/utils
copying examples/utils/runtime.py -> build/lib.linux-x86_64-3.6/examples/utils
copying examples/utils/__init__.py -> build/lib.linux-x86_64-3.6/examples/utils
creating build/lib.linux-x86_64-3.6/examples/a2c
copying examples/a2c/a2c_main.py -> build/lib.linux-x86_64-3.6/examples/a2c
copying examples/a2c/__init__.py -> build/lib.linux-x86_64-3.6/examples/a2c
copying examples/a2c/model.py -> build/lib.linux-x86_64-3.6/examples/a2c
copying examples/a2c/helper.py -> build/lib.linux-x86_64-3.6/examples/a2c
copying examples/a2c/train.py -> build/lib.linux-x86_64-3.6/examples/a2c
running build_ext
building 'torchcule_atari' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/torchcule
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/root/cule -I/root/cule/third_party/agency -I/usr/local/lib/python3.6/dist-packages/torch/include -I/usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.6/dist-packages/torch/include/TH -I/usr/local/lib/python3.6/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c torchcule/frontend.cpp -o build/temp.linux-x86_64-3.6/torchcule/frontend.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=torchcule_atari -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
In file included from torchcule/frontend.cpp:12:0:
/root/cule/torchcule/atari_env.hpp:3:10: fatal error: cule/atari/flags.hpp: No such file or directory
 #include <cule/atari/flags.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
prichemond commented 5 years ago

Same issue on my side on a GPU Colab instance, running !cd /content/cule ; python setup.py install . CUDA 10.0 GCC 7.4.0 on Ubuntu 18.04.1 .