-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Get rid of the dependency of Go compiler when WITH_GOLANG is OFF. #8610
Conversation
@@ -58,7 +58,7 @@ Users can specify the following Docker build arguments with either "ON" or "OFF" | |||
| `WITH_AVX` | OFF | Set to "ON" to enable AVX support. | | |||
| `WITH_TESTING` | OFF | Build unit tests binaries. | | |||
| `WITH_MKL` | ON | Build with [Intel® MKL](https://software.intel.com/en-us/mkl) and [Intel® MKL-DNN](https://github.com/01org/mkl-dnn) support. | | |||
| `WITH_GOLANG` | ON | Build fault-tolerant parameter server written in go. | | |||
| `WITH_GOLANG` | OFF | Build fault-tolerant parameter server written in go. | |
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.
May also change paddle/scripts/docker/build.sh
to make this default OFF
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.
Paddle/paddle/scripts/docker/build.sh
Line 68 in a67ceba
-DWITH_GOLANG=${WITH_GOLANG:-ON} \ |
If changing the above value to OFF
, then CI cannot test the go codes? Maybe I should change the value in README.md
back to ON
?
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.
We can configure CI to enable golang explicitly to run the tests, the defaults can be still OFF.
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.
Done.
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.
LGTM! Thanks!
In CMake, project is used to set a name, version, and enable languages for the entire project.
We can call enable_language to enable the
Go
language optionally.It can fix problems in #8555 #5427 #3741 etc.