Open VisionTheta opened 6 years ago
I just update the Dockerfile for centos7 since a previous one was not tested, thanks for checking.
The line echo "/usr/local/cuda-8.0/targets/x86_64-linux/lib/stubs" > /etc/ld.so.conf.d/cuda-8.0-stubs.conf && ldconfig
is needed for not only ubuntu but also centos then.
I'll release the post-build TF binary for centos7 a short later.
Thanks, I forked your repo and will update my centos 7 dockerfile also.
Hi, thanks for your suggestion of using docker. I am writing Dockerfile for a day about, and build it cost me lots of time, even though I used i7-6850K CPU.
During trying to build tf 1.8 against cuda 8 on centos 7, it encountered many problems. My base setting is as follows:
And, an error I cannot solve is as follows:
I searched a lot on the Internet and tried many solutions, but they didn't help, such as
python34
installed fromepel-release
topython 3.5.2
installed from source../configure
(if forgot, runbazel clean
and re-configure),--action_env="LD_LIBRARY_PATH=${LD_LIBRARY_PATH}"
tobazel build
command to ensureLD_LIBRARY_PATH
was set correctly.Finally, I tried the code in your dockerfile
echo "/usr/local/cuda-8.0/targets/x86_64-linux/lib/stubs" > /etc/ld.so.conf.d/cuda-8.0-stubs.conf && ldconfig
and my problem solved.However, you comment that line in your centos dockerfile. My question is: Why that worked for my problems or why you used that line in your ubuntu dockerfile? If I don't use it, which error will I see when building it? Is it the same to
crosstool_wrapper_driver_is_not_gcc failed: error executing command
orundefined reference to cuMemGetAddressRange_v2(cubalabala)'
Thank you