Git Product home page Git Product logo

Comments (5)

albertz avatar albertz commented on August 11, 2024

Related is also #1513.

Can you post the full output?

from returnn.

albertz avatar albertz commented on August 11, 2024

Can you try to run on CPU only (export DISABLE_CUDA=1)?
Can you try to run test_TFNativeOp.py?

from returnn.

Icemole avatar Icemole commented on August 11, 2024

Please find here the full output of the compilation on CUDA.

Answering your questions:

  1. A non-CUDA environment, CPU only works!
  2. python3 -m pytest test_TFNativeOp.py also works, but I'm not sure if I'm running the test with CUDA enabled (if that makes any difference for the test). Besides, there are some skipped tests as well as some warnings. I'm running these in a machine that has GPUs available. Please see the results below.
test_TFNativeOp.py ......................................................sssssss                                                                                    [100%] 
                                                                                                                                                                           
============================================================================ warnings summary =============================================================================
../../../../../../../../../../../.venvs/singularity/returnn_test_native_op/lib/python3.10/site-packages/nose/plugins/manager.py:418
  /home/nbeneitez/.venvs/singularity/returnn_test_native_op/lib/python3.10/site-packages/nose/plugins/manager.py:418: DeprecationWarning: pkg_resources is deprecated as an
 API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

../../../../../../../../../../../.venvs/singularity/returnn_test_native_op/lib/python3.10/site-packages/nose/importer.py:12
  /home/nbeneitez/.venvs/singularity/returnn_test_native_op/lib/python3.10/site-packages/nose/importer.py:12: DeprecationWarning: the imp module is deprecated in favour of
 importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
    from imp import find_module, load_module, acquire_lock, release_lock

../../../../../../../../../../../.venvs/singularity/returnn_test_native_op/lib/python3.10/site-packages/numpy/__config__.py:155
  /home/nbeneitez/.venvs/singularity/returnn_test_native_op/lib/python3.10/site-packages/numpy/__config__.py:155: UserWarning: Install `pyyaml` for better output
    warnings.warn("Install `pyyaml` for better output", stacklevel=1)

tests/test_TFNativeOp.py::test_py_viterbi
  /home/nbeneitez/work/returnn/native_op_issue/work/i6_core/tools/git/CloneGitRepositoryJob.nH5B7CKRCU89/output/repository/tests/test_TFNativeOp.py:2224: RuntimeWarning: d
ivide by zero encountered in log
    am_scores = numpy.log(am_scores)  # in +log space

tests/test_TFNativeOp.py::test_fast_viterbi
  /home/nbeneitez/work/returnn/native_op_issue/work/i6_core/tools/git/CloneGitRepositoryJob.nH5B7CKRCU89/output/repository/tests/test_TFNativeOp.py:2277: RuntimeWarning: d
ivide by zero encountered in log
    am_scores = numpy.log(am_scores)  # in +log space

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================== 54 passed, 7 skipped, 5 warnings in 193.13s (0:03:13) ==========================================================

Should the test_TFNativeOp.py fail for me? As I said, I might be doing something wrong.

from returnn.

albertz avatar albertz commented on August 11, 2024

python3 -m pytest test_TFNativeOp.py also works

I assume you tested that with export DISABLE_CUDA=1, i.e. only for CPU? Can you also try with CUDA?

from returnn.

albertz avatar albertz commented on August 11, 2024

Note, the main error is error: name followed by "::" must be a class or namespace name on perftools:

/home/nbeneitez/work/returnn/native_op_issue/work/i6_core/tools/git/CloneGitRepositoryJob.nH5B7CKRCU89/output/repository/returnn/native_op.cpp(240): error: name followed by "::" must be a class or namespace name
  perftools::gputools::DeviceMemory<T> AsDeviceMemory(const T* cuda_memory) {
  ^

I guess they moved/renamed that. I see in other TF code that it is se::DeviceMemory<T> (or maybe tensorflow::se::DeviceMemory<T> or stream_executor::DeviceMemory<T> or so) now.

Similarly, in our static perftools::gputools::blas::Transpose get_transpose, I think it is stream_executor::blas::Transpose or so now.

from returnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.