-
Notifications
You must be signed in to change notification settings - Fork 5.9k
reading source code with woboq #1707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
587a05e
35e0f97
95972aa
8b15be6
82764fd
385614a
a073575
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,3 +166,17 @@ docker tag myapp me/myapp | |
docker push | ||
kubectl ... | ||
``` | ||
|
||
### Reading source code with woboq codebrowser | ||
If you are interesting of PaddlePaddle source code, [Woboq codebrowser](https://github.com/woboq/woboq_codebrowser) is a suitable tool. | ||
- Build PaddlePaddle source code to be static files | ||
|
||
```bash | ||
docker run -v $PWD:/paddle -v $HOME/nginx_data:/usr/share/nginx/html/data -v $HOME/nginx_data/paddle:/usr/share/nginx/html/paddle -e "WITH_GPU=OFF" -e "WITH_AVX=ON" -e "WITH_TEST=OFF" -e "RUN_TEST=OFF" -e "BUILD_WOBOQ=ON" paddle:dev | ||
|
||
``` | ||
|
||
- Open the generated static files in a browser, or upload these files to your web server. You can run nginx server as the following command, and then hit "http://<hostip>:8080/paddle" in browser. | ||
|
||
|
||
``` | ||
docker run -v $HOME/nginx_data:/usr/share/nginx/html -d -p 8080:80 nginx | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For developers who are interested in the C++ source code, please use
-e "WOBOQ=ON"
to enable building C++ source code into HTML pages using Woboq codebrowserThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.