dusty-nv / jetson-reinforcement

Deep reinforcement learning GPU libraries for NVIDIA Jetson TX1/TX2 with PyTorch, OpenAI Gym, and Gazebo robotics simulator.
MIT License
874 stars 225 forks source link

Issue with building pytorch for jetson tx1 #10

Closed cjbarb7 closed 6 years ago

cjbarb7 commented 6 years ago

Experienced this issue with make

In file included from /home/ubuntu/Desktop/jetson-reinforcement/c/pyTensor.cpp:6:0: /home/ubuntu/Desktop/jetson-reinforcement/c/pyTorch.h:14:19: fatal error: TH/TH.h: No such file or directory compilation terminated. CMakeFiles/jetson-reinforcement.dir/build.make:95: recipe for target 'CMakeFiles/jetson-reinforcement.dir/c/pyTensor.cpp.o' failed make[2]: [CMakeFiles/jetson-reinforcement.dir/c/pyTensor.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/jetson-reinforcement.dir/all' failed make[1]: [CMakeFiles/jetson-reinforcement.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

dusty-nv commented 6 years ago

Hi @cjbarb7 , you may get this error if the cmake ../ step doesn't build/install PyTorch correctly.

Are you able to run this step from the tutorial OK to independently verify that PyTorch is working?

https://github.com/dusty-nv/jetson-reinforcement#verifying-pytorch

cjbarb7 commented 6 years ago

I think it might have to do with the amount of memory the TX1 has and ill probably have to do something about increasing the memory. I installed pytorch on my TX2 and it had no issues.

dusty-nv commented 6 years ago

You may need to attach a SWAP partition on TX1 depending on the JetPack-L4T. I will have to note it in the readme, thanks.

-------- Original message -------- From: CJ Barberan notifications@github.com Date: 4/29/18 8:25 PM (GMT-05:00) To: dusty-nv/jetson-reinforcement jetson-reinforcement@noreply.github.com Cc: Dustin Franklin dustinf@nvidia.com, Comment comment@noreply.github.com Subject: Re: [dusty-nv/jetson-reinforcement] Issue with building pytorch for jetson tx1 (#10)

I think it might have to do with the amount of memory the TX1 has and ill probably have to do something about increasing the memory. I installed pytorch on my TX2 and it had no issues.

- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-reinforcement/issues/10#issuecomment-385294026, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOpDKxxXMlTsNQ_AtJpSl_VvRwzocj86ks5ttlnZgaJpZM4TEdB2.


This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

phojjat commented 5 years ago

Hello,

make gave me the following error. cmake ../ seemed to have finished fine. I am using jetson TX2

Scanning dependencies of target jetson-reinforcement [ 40%] Building CXX object CMakeFiles/jetson-reinforcement.dir/c/pyTensor.cpp.o In file included from /home/nvidia/jetson-reinforcement/c/pyTensor.cpp:6:0: /home/nvidia/jetson-reinforcement/c/pyTorch.h:14:19: fatal error: TH/TH.h: No such file or directory compilation terminated. CMakeFiles/jetson-reinforcement.dir/build.make:69: recipe for target 'CMakeFiles/jetson-reinforcement.dir/c/pyTensor.cpp.o' failed make[2]: [CMakeFiles/jetson-reinforcement.dir/c/pyTensor.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/jetson-reinforcement.dir/all' failed make[1]: [CMakeFiles/jetson-reinforcement.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2