Skip to content

Conversation

@mthrok
Copy link
Contributor

@mthrok mthrok commented Jan 20, 2021

Supersedes #1068

@mthrok mthrok force-pushed the cmake branch 4 times, most recently from 77d4816 to 5ca8a2a Compare January 20, 2021 21:28
mthrok added a commit that referenced this pull request Jan 21, 2021
Changing the test Docker image for GPU tests to use Nvidia Docker `devel` image. This is necessary for #1187.
@mthrok mthrok force-pushed the cmake branch 5 times, most recently from 08320b8 to 63b2374 Compare January 27, 2021 19:32
@mthrok mthrok force-pushed the cmake branch 5 times, most recently from 38ed382 to 3bca1d1 Compare February 3, 2021 15:19
@mthrok mthrok marked this pull request as ready for review February 3, 2021 15:49
@mthrok mthrok force-pushed the cmake branch 2 times, most recently from 7465ad7 to 80edff1 Compare February 3, 2021 18:00
ENDIF()

ADD_LIBRARY(warprnnt STATIC submodule/src/rnnt_entrypoint.cpp)
add_library(warprnnt STATIC submodule/src/rnnt_entrypoint.cpp)
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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.so
################################################################################
if (BUILD_PYTHON_EXTENSION)
Copy link
Contributor

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

@mthrok mthrok deleted the cmake branch February 4, 2021 23:25
@mthrok
Copy link
Contributor Author

mthrok commented Feb 4, 2021

THANK YOU!

mthrok pushed a commit to mthrok/audio that referenced this pull request Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants