Comments (5)
If you have a GPU you need to install pysph once the required GPU libraries are available, some parts of PySPH are compiled only if PyOpenCL is available. Right now you cannot install pysph without setting up the GPU libraries and then install the GPU libraries (say pyopencl) and expect for pysph to work with it. Just reinstall PySPH. We may change this in the future but not right now.
from pysph.
I reinstalled the PySPH library but I am getting the same error.
Traceback (most recent call last):
File "dam_break_2d.py", line 303, in <module>
app.run()
File "C:\Users\CKesanapalli\Anaconda3\lib\site-packages\pysph\solver\application.py", line 1569, in run
self._configure_solver()
File "C:\Users\CKesanapalli\Anaconda3\lib\site-packages\pysph\solver\application.py", line 1025, in _configure_solver
from pysph.base.gpu_nnps import ZOrderGPUNNPS
File "C:\Users\CKesanapalli\Anaconda3\lib\site-packages\pysph\base\gpu_nnps.py", line 1, in <module>
from pysph.base.gpu_nnps_base import GPUNeighborCache, GPUNNPS, BruteForceNNPS
ModuleNotFoundError: No module named 'pysph.base.gpu_nnps_base'
from pysph.
Can you pip uninstall and then reinstall? Also, if you are likely to use the latest pysph always then it may be easier to use python setup.py develop
that way you don't need to uninstall and reinstall. How exactly did you install this? If you did pip install
then pip caches the wheels it installs. Please provide more details.
from pysph.
Also for tiny problems using a GPU will likely be very slow. You need many particles, just having more timesteps for longer runs will not help at all. 3D usually works better and I will warn you that opencl support is not 100% like the CPU backend.
from pysph.
I finally resolved the issue after developing the code after install pyopencl
pip uninstall pysph
pip install pyopencl
pip install -r requirements.txt
python setup.py develop
Also for tiny problems using a GPU will likely be very slow.
It is true. I ran for the dam_break_2d case with 3838 particles and run times are
OpenMP : (It runs fast but somehow the simulation is terminating at 38%)
CPU OpenCL : 1730.77281 secs
GPU OpenCL : 878.56608 secs
from pysph.
Related Issues (20)
- 26 errors when testing PySPH by <pysph test> HOT 4
- No traitsui.toolkits plugin could be loaded for qt4 HOT 9
- numpy problem np.load: ValueError: Object arrays cannot be loaded when allow_pickle=False HOT 2
- I get "OSError: [WinError 6] The handle is invalid" when trying to run pysph examples HOT 6
- Error trying to view pysph examples (windows 10, anaconda, python 3.7.4) HOT 5
- Question: Inlet / Outlet with multiple fluids HOT 2
- Facing error while running dam_break_3d HOT 1
- For 3D_DAM BREAK I was not able to get .npz file HOT 1
- Intermittent error in pysph.parallel.tests.test_parallel.MPIReduceArrayTestCase.test_parallel_reduce HOT 5
- ValueError when running elliptical_drop example HOT 1
- Wondering if this can be implemented to work with or in blender HOT 1
- Issue with using pysph view HOT 2
- Process on GPU killed after long run and/or restart HOT 5
- cull_factor is not initialized in code HOT 1
- Possible bug in TransportVelocityStep HOT 2
- cannot run gas dynamic example in GPU
- Some confusion about using pysph HOT 1
- : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
- ERROR: Failed building wheel for PySph HOT 5
- how to use TVF wall boundary for solid 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 pysph.