-
Notifications
You must be signed in to change notification settings - Fork 739
Switch to cmake for build #1187
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
Conversation
77d4816 to
5ca8a2a
Compare
Changing the test Docker image for GPU tests to use Nvidia Docker `devel` image. This is necessary for #1187.
08320b8 to
63b2374
Compare
38ed382 to
3bca1d1
Compare
7465ad7 to
80edff1
Compare
| ENDIF() | ||
|
|
||
| ADD_LIBRARY(warprnnt STATIC submodule/src/rnnt_entrypoint.cpp) | ||
| add_library(warprnnt STATIC submodule/src/rnnt_entrypoint.cpp) |
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 should probably also hide warprnnt symbols
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.
I misspoke during the review. -fvisibility=hidden is defined on third_party level so it is propagated to transducer module too.
$ objdump -t build/temp.linux-x86_64-3.8/third_party/transducer/libwarprnnt.a | grep hidden
0000000000000000 g F .text 0000000000000006 .hidden get_warprnnt_version
0000000000000010 g F .text 0000000000000038 .hidden rnntGetStatusString
0000000000000050 g F .text 000000000000005e .hidden get_workspace_size
0000000000000000 w F .text._ZN7CpuRNNTIfE14compute_alphasEPKfiiPf 00000000000002b8 .hidden _ZN7CpuRNNTIfE14compute_alphasEPKfiiPf
0000000000000000 w F .text._ZN7CpuRNNTIdE14compute_alphasEPKdiiPd 000000000000029d .hidden _ZN7CpuRNNTIdE14compute_alphasEPKdiiPd
0000000000000000 w F .text._ZN7CpuRNNTIfE22compute_betas_and_gradEPfPKfiiS1_S1_PKif 00000000000008fd .hidden _ZN7CpuRNNTIfE22compute_betas_and_gradEPfPKfiiS1_S1_PKif
0000000000000000 w F .text._ZN7CpuRNNTIfE13cost_and_gradEPKfPfS3_PKiS5_S5_ 000000000000051f .hidden _ZN7CpuRNNTIfE13cost_and_gradEPKfPfS3_PKiS5_S5_
00000000000000b0 g F .text 0000000000000610 .hidden compute_rnnt_loss
0000000000000000 w F .text._ZN7CpuRNNTIdE22compute_betas_and_gradEPdPKdiiS1_S1_PKid 00000000000008b7 .hidden _ZN7CpuRNNTIdE22compute_betas_and_gradEPdPKdiiS1_S1_PKid
0000000000000000 w F .text._ZN7CpuRNNTIdE13cost_and_gradEPKdPdS3_PKiS5_S5_ 00000000000004c4 .hidden _ZN7CpuRNNTIdE13cost_and_gradEPKdPdS3_PKiS5_S5_
00000000000006c0 g F .text 00000000000005f0 .hidden compute_rnnt_loss_fp64
0000000000000000 *UND* 0000000000000000 .hidden __dso_handle
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.
The thing is that, to build libsox, we use ExternalProject_Add which does not reflect the regular CMake configuration like CMAKE_CXX_FLAGS so it has to be set again there.
torchaudio/csrc/CMakeLists.txt
Outdated
| ################################################################################ | ||
| # _torchaudio.so | ||
| ################################################################################ | ||
| if (BUILD_PYTHON_EXTENSION) |
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.
suggestion: I'd go with BUILD_TORCHAUDIO_PYTHON_EXTENSION just because this is quite generic
|
THANK YOU! |
Co-authored-by: Brian Johnson <[email protected]>
Supersedes #1068