ppo_cpp icon indicating copy to clipboard operation
ppo_cpp copied to clipboard

Possible g++ compilation?

Open WeiHao97 opened this issue 4 years ago • 1 comments

Dear Antymon, I am at the stage of trying to compile my_own_ppo2.cpp with my_own_env.hpp inherited from the env.hpp. I am wondering if there is an option of not using the singularity img, eg MAKEFILE style compilation? I compiled the tensorflow from sourse using bazel and downloaded the Eigen/Dense ,but there are still some denpendency issues while I was comiling. I appreciate any helps on this.

Thank you very much, Wei

WeiHao97 avatar Nov 17 '20 12:11 WeiHao97

Well, that's, of course, possible, but you will have to make(file) on your own I am afraid. wscript lists the dependencies and contents of waf_tools define them (some definitions are in sferes2 under the same directory). I think the compiler used inside of simg is gcc, so if using g++ there might be differences in which libraries they link against automatically (not to mention the compiler versions). You can examine the contents of the singularity file and its parent hosted under singularity hub, plus I would suggest spawning container to see the target setup. You can also quote the dependency problem you are getting and I will see if that rings a bell, but that's about how much I can do. Generally, versions of everything will matter, the first in line being tensorflow. I believe parent simg is using some pre-RC tf 2.0. Things might have changed ever since...

Antymon avatar Nov 18 '20 20:11 Antymon