SeanNaren / warp-ctc

Pytorch Bindings for warp-ctc
Apache License 2.0
757 stars 271 forks source link

Fix compilation of tests on Debian with gcc-5 #33

Closed t-vi closed 6 years ago

t-vi commented 6 years ago

On Debian with gcc-5, the random header does not like to be compiled with nvcc. Including random in .cu results in errors in avx512-headers. Thus, this moves the random bits out of the test.h included by the test_gpu.cu .

SeanNaren commented 6 years ago

Thanks!

bstriner commented 6 years ago

Same fix needs to be made to CPU build.

https://github.com/SeanNaren/warp-ctc/pull/39