Comments (7)
Please try v0.3.18 to see if it is fixed.
from thrustrtc.
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.
Another thing is, is there any message from std::out? Strange if not.
from thrustrtc.
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.
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.
I've just done a fix (v0.3.19).
from thrustrtc.
Thanks! This solved the problem.
from thrustrtc.
Related Issues (20)
- report wrong number of argument for launch_n as exception HOT 3
- import fails after fresh install with pip (/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found) HOT 7
- Give more useful debug feedback for internal error HOT 6
- update conda package HOT 5
- ThrustRTC example failed execution - Loading libnvrtc failed. cuMemAlloc() failed with Error code: 2 HOT 5
- Large alloc bug, regression in 0.3.11 HOT 5
- Possibility of doing FFT and representing Complex Numbers with ThrustRTC HOT 9
- release/packaging syncinc HOT 2
- provide ThrustRTC.__version__ HOT 2
- Fill() regression in 0.3.9 HOT 18
- raise an exception in case of incompatible CUDA version HOT 8
- a case of lack of type specifiers in header_of_structs.h HOT 9
- better error handling for 0-size vector creation HOT 2
- Raise "NVRTC version too high for GPU (compute_7)" on RTX2060 when "Sort_By_Key" HOT 2
- About python trtc.Functor HOT 3
- About mutliprocess HOT 1
- Inability to do arithmetic operations for different argument types - bug or feature? HOT 4
- "SystemError: An internal error happend" When using Exclusive_Scan HOT 2
- segfault in reduction (due to NULL returned from native.n_reduce()) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thrustrtc.