Giter Site home page Giter Site logo

Comments (7)

fynv avatar fynv commented on June 15, 2024 1

Please try v0.3.18 to see if it is fixed.

from thrustrtc.

fynv avatar fynv commented on June 15, 2024

What's the CUDA (nvrtc) version? Could it be too low for the device? I haven't considered this yet, assuimg backward compatibility..

from thrustrtc.

fynv avatar fynv commented on June 15, 2024

Another thing is, is there any message from std::out? Strange if not.

from thrustrtc.

fynv avatar fynv commented on June 15, 2024

Ok.. A very likely cause is that internal/cuda_occupancy.h is out-dated. It comes from CUDA 10, so it doesn't know anything about cc 8.x. I'll try replacing it with the one from CUDA 11.6.

from thrustrtc.

Delcior avatar Delcior commented on June 15, 2024

Thank you for quick reply! I've tried new version and looks like it works perfectly, but I spotted another thing which is DeprecationWaring for np.bool. Executing following code:

# filename: test.py
import ThrustRTC as trtc
import numpy as np

def test():
    vector= trtc.device_vector_from_numpy(np.array([0,1,0], dtype=bool))
    assert True

with pytest test.py (numpy==1.21.0 and ThrustRTC==0.3.18) I get:

================================================= test session starts ==================================================
platform linux -- Python 3.9.10, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/test
collected 1 item                                                                                                       

test.py .                                                                                                        [100%]

=================================================== warnings summary ===================================================
test.py::test
  /usr/local/lib/python3.9/dist-packages/ThrustRTC/DVVector.py:93: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    elif nparr.dtype == np.bool:

-- Docs: https://docs.pytest.org/en/stable/warnings.html
============================================= 1 passed, 1 warning in 0.21s =============================================

Tests that are using ThrustRTC run with -We flag and this warning causes them to fail.
Do you need any other informations? (I will try to reply quicker this time)
Thanks for help again.

from thrustrtc.

fynv avatar fynv commented on June 15, 2024

I've just done a fix (v0.3.19).

from thrustrtc.

Delcior avatar Delcior commented on June 15, 2024

Thanks! This solved the problem.

from thrustrtc.

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.