Comments (4)
Add -gencode to match all the GPU architectures you have.
Check 'https://en.wikipedia.org/wiki/CUDA#GPUs_supported' for list of architecture.
Check 'http://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html' for GPU compilation based on architecture.
nvcc -c -o calc_prob_kernel.cu.o calc_prob_kernel.cu -x cu -Xcompiler -fPIC -I /home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/lib/include -I /home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/lib/include/TH -I /home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/lib/include/THC -I /home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob/src -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_61,code=sm_61
In file included from /usr/include/c++/5/type_traits:35:0,
from /home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/lib/include/ATen/optional.h:19,
from /home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/lib/include/ATen/Error.h:4,
from /home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/lib/include/ATen/Allocator.h:6,
from /home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/lib/include/TH/THAllocator.h:6,
from /home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/lib/include/THC/THCGeneral.h:5,
from /home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/lib/include/THC/THC.h:4,
from calc_prob_kernel.cu:1:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support
^
/home/yao/GenRe-ShapeHD/toolbox/calc_prob
generating /tmp/tmp5ikfbzbw/_calc_prob_lib.c
setting the current directory to '/tmp/tmp5ikfbzbw'
running build_ext
building '_calc_prob_lib' extension
creating home
creating home/yao
creating home/yao/GenRe-ShapeHD
creating home/yao/GenRe-ShapeHD/toolbox
creating home/yao/GenRe-ShapeHD/toolbox/calc_prob
creating home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob
creating home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob/src
gcc -pthread -B /home/yao/anaconda2/envs/shaperecon/compiler_compat -Wl,--sysroot=/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -DWITH_CUDA=True -I/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob/src -I/home/yao/anaconda2/envs/shaperecon/include/python3.6m -c _calc_prob_lib.c -o ./_calc_prob_lib.o -std=c99
gcc -pthread -B /home/yao/anaconda2/envs/shaperecon/compiler_compat -Wl,--sysroot=/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -fPIC -DWITH_CUDA=True -I/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob/src -I/home/yao/anaconda2/envs/shaperecon/include/python3.6m -c /home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob/src/calc_prob.c -o ./home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob/src/calc_prob.o -std=c99
gcc -pthread -shared -B /home/yao/anaconda2/envs/shaperecon/compiler_compat -L/home/yao/anaconda2/envs/shaperecon/lib -Wl,-rpath=/home/yao/anaconda2/envs/shaperecon/lib -Wl,--no-as-needed -Wl,--sysroot=/ -std=c99 ./_calc_prob_lib.o ./home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob/src/calc_prob.o /home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob/src/calc_prob_kernel.cu.o -o ./_calc_prob_lib.so
gcc: error: /home/yao/GenRe-ShapeHD/toolbox/calc_prob/calc_prob/src/calc_prob_kernel.cu.o: No such file or directory
Traceback (most recent call last):
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/unixccompiler.py", line 197, in link
self.spawn(linker + ld_args)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/cffi/ffiplatform.py", line 54, in _build
dist.run_command('build_ext')
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/command/build_ext.py", line 558, in build_extension
target_lang=language)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/ccompiler.py", line 717, in link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/distutils/unixccompiler.py", line 199, in link
raise LinkError(msg)
distutils.errors.LinkError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "build.py", line 45, in
ext.build()
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 189, in build
_build_extension(ffi, cffi_wrapper_name, target_dir, verbose)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/torch/utils/ffi/init.py", line 111, in _build_extension
outfile = ffi.compile(tmpdir=tmpdir, verbose=verbose, target=libname)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/cffi/api.py", line 723, in compile
compiler_verbose=verbose, debug=debug, **kwds)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/cffi/recompiler.py", line 1527, in recompile
compiler_verbose, debug)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/cffi/ffiplatform.py", line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File "/home/yao/anaconda2/envs/shaperecon/lib/python3.6/site-packages/cffi/ffiplatform.py", line 61, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.VerificationError: LinkError: command 'gcc' failed with exit status 1
from genre-shapehd.
I have tried put export CXXFLAGS="-std=c++11" export CFLAGS="-std=c99" in the setup.sh and build_toolbox.sh ,but it did not work.
from genre-shapehd.
And I install CUDA9.0 today, but error not changed.
from genre-shapehd.
Would you mind share your gcc version? Thank you very much!
from genre-shapehd.
Related Issues (20)
- Can I read numpy data from the depth,normal and silhouette image? HOT 4
- How to obtain surface normal images from the raw depth data? HOT 1
- I want to use the wgangp which is in the shapehd HOT 2
- ground truth images that give rise to the demo latent inputs
- MarrNet w/o Reprojection Consistency Weights HOT 1
- how to get the intrinsic and extrinsic parameters when i use the GenRE HOT 3
- how can I make my own data set? HOT 1
- 128.npz voxel files are not TDF HOT 4
- Evaluation code HOT 2
- Failure when running test_genre.sh HOT 1
- Full Dataset? HOT 1
- Fail to compile. HOT 2
- Poor Genre results on demo images when compiled with Cuda10 HOT 6
- Generate distance field based on depth image by using render_spherical function HOT 2
- Different prediction results by using different data loader code for GenRe HOT 3
- Could you provide state_dicts for the discriminator of the pretrained models HOT 3
- how to
- how to train marrnet of shapehd? HOT 1
- GenRe docker environment for 2080Ti and 1080Ti HOT 1
- dataset link broken? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genre-shapehd.