Coder Social home page Coder Social logo

Comments (5)

prabhuramachandran avatar prabhuramachandran commented on May 17, 2024

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.

ckesanapalli avatar ckesanapalli commented on May 17, 2024

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.

prabhuramachandran avatar prabhuramachandran commented on May 17, 2024

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.

prabhuramachandran avatar prabhuramachandran commented on May 17, 2024

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.

ckesanapalli avatar ckesanapalli commented on May 17, 2024

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)

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.