Failing to compile from install.sh
See original GitHub issueI’m getting the following two errors while compiling the code:
csrc/lamb/fused_lamb_cuda_kernel.cu:58:10: fatal error: type_shim.h: No such file or directory
#include "type_shim.h"
^~~~~~~~~~~~~
compilation terminated.
I copied two files from thirdparty/apex/csrc
(compat.h
and type_shim.h
) and it worked.
csrc/transformer/general_kernels.cu:1:10: fatal error: general_kernels.h: No such file or directory
#include "general_kernels.h"
It seems that (for some reason) the -I
flag is not using absolute paths, but the compiled files are. I fixed that by adding absolute paths in setup.py
, replacing all relevant include_dirs
lines with:
include_dirs=[os.path.join(os.path.abspath(os.path.dirname(__file__)), 'csrc', 'includes')],
I can also upload a pull request if that works better.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
debian - Trying to execute a .sh file. However, I get the error ...
apt-get install install.sh. The first two above commands gave me the error "Configuration Absent: Installation Failed". The third command gave ...
Read more >command line - Unable to install a .sh file - Ask Ubuntu
I am trying to use a package called mgl-tools and when I run ./install.sh, it isn't working. It used to work a few...
Read more >Issues - GitHub
Failed installation when running './install.sh' · Issue #239 · torch/distro · GitHub.
Read more >BUG.am: error: 'install.sh' is an anachronism - Neuron.yale.edu
Dear Neuron developers, I'm experiencing some issues with the build.sh script and the configure step of NEURON on a cluster.
Read more >docker container failing to start after running install.sh script
I am trying to run a bash script (install.sh) after the container is created to run apt-get update install wget etc, but the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vfdev-5 if it’s still not working for you I’ll reopen.
I can confirm this issue has been resolved for me on the latest master. Thanks!