Comments (8)
How did you modify the script to attempt to build the static library?
from installcaffejtx2.
Thank you for reply. I modified it by 2 ways.
- I read your installCaffe script and found that it use the same source of caffe from git as my PC (by git clone https://github.com/BVLC/caffe.git) .
So I think that the only difference from compiling from PC is that, in your script there is " cmake -DCUDA_USE_STATIC_CUDA_RUNTIME=OFF " before make all in TX2. Then I modified it to "ON" by "" cmake -DCUDA_USE_STATIC_CUDA_RUNTIME=ON ".
However, this modification doesn't generate libcaffe.a
- I grep all files to find key word "libcaffe.so" and "libprotobuf.a" that are generated successully. I did found them in CaffeTargets.cmake. So I modified the libcaffe.so target to libcaffe.a. Failed to generate libcaffe.a again.
Why with the same source code from github, my PC can generate libcaffe.a but the TX2 cannot? Is it a problem of configuration?
Please help.
from installcaffejtx2.
Did you use the same cmake configuration that you used for your PC? I am under the impression that the flag for static compilation is BUILD_SHARED_LIBS=OFF
You don't mention how you are building this for the PC.
from installcaffejtx2.
On my PC it's by default.
cp Makeconfig.example.save Makeconfig.example
make all -j8
Then it generates both libcaffe.a and libcaffe.so. No special configuration.
from installcaffejtx2.
And I just verified that on my PC, the cmake was even not installed.
Caffe contains the makefile which is directly called by make instead of cmake.
from installcaffejtx2.
The CMake version does not build both the dynamic and static libraries by default, it builds one or the other.
You can use make instead if so desired. I do recall that using a static CUDA runtime on the TX2 causes issues, I am not sure if this has been fixed in later releases.
from installcaffejtx2.
Thank you the problem is revolved! I removed wholely the caffe folder, rerun your installCaffe.sh script without the CMake line, everything is OK.
I didn't realize the CMake changed the BUILD_STATIC_LIBARYR configue in Makefile. How can you know such a detail? You are a hero!
from installcaffejtx2.
I'm glad you got it to work.
from installcaffejtx2.
Related Issues (6)
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 installcaffejtx2.