Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sibernetic crashes on MacBook Pro with OpenCL 1.2 #21

Closed
tarelli opened this issue Feb 27, 2014 · 11 comments
Closed

Sibernetic crashes on MacBook Pro with OpenCL 1.2 #21

tarelli opened this issue Feb 27, 2014 · 11 comments
Labels

Comments

@tarelli
Copy link
Member

tarelli commented Feb 27, 2014

I compiled successfully Sibernetic but as soon as I launch it, after briefly showing the worm, it crashes with the following error:

Matteos-MacBook-Pro:Smoothed-Particle-Hydrodynamics matteocantarelli$ ./build/Smoothed-Particle-Hydrodynamics
Sibernetic: no arguments, run method executing
[debug] pName = "main_sim"
[debug] PyPath = "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload"
ImportError: No module named main_sim
Module not loaded, have you set PYTHONPATH?
Pyramidal simulation class not callable!
 CL_PLATFORM_VERSION [0]:   OpenCL 1.2 (Apr 25 2013 18:32:06)
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_NAME [0]:    Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_WORK_GROUP_SIZE [0]:     1024
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_MAX_COMPUTE_UNITS [0]:   8
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_SIZE [0]:     0
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_GLOBAL_MEM_CACHE_SIZE [0]:   64
CL_CONTEXT_PLATFORM [0]: CL_DEVICE_LOCAL_MEM_SIZE [0]:  32768
graphics:          64.352 ms
====================================
graphics:          85.479 ms
====================================

[[ Step 0 ]]
_runClearBuffers:      23.963 ms
_runHashParticles:      1.046 ms
_runSort:          16.459 ms
_runSortPostPass:       3.083 ms
_runIndexx:             4.007 ms
_runIndexPostPass:      0.899 ms
_runFindNeighbors:    110.642 ms
_runPCISPH:           153.773 ms    3 iteration(s)
_readBuffer:           10.918 ms
------------------------------------
_Total_step_time:     324.792 ms
------------------------------------
!!!checkpoint001!!!
!!!checkpoint002!!!
Segmentation fault: 11
@tarelli tarelli added the bug label Feb 27, 2014
@vellamike
Copy link
Contributor

Matteo - try running it a few times, I recall there was some issue where
this bug happens sometimes but not others (probably a race condition).

@tarelli
Copy link
Member Author

tarelli commented Feb 27, 2014

10 runs out of 10 crashed after half a second.

@msasinski
Copy link

@tarelli
1.Why are you running it from the ./build folder not ./Release?
2. you python path is not set correctly as the program does not see main_sim.py

@vellamike
Copy link
Contributor

Well-spotted Mariusz!

On 27 February 2014 12:58, Mariusz Sasinski notifications@github.comwrote:

@tarelli https://github.com/tarelli
1.Why are you running it from the ./build folder not ./Release?
2. you python path is not set correctly as the program does not see
main_sim.py

Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-36238989
.

@tarelli
Copy link
Member Author

tarelli commented Feb 27, 2014

@msasinski thanks! Still running from build as that's what's in the README but setting PYTHONPATH fixed it.

@tarelli tarelli closed this as completed Feb 27, 2014
@tarelli
Copy link
Member Author

tarelli commented Feb 27, 2014

This is performance on my system btw:

[[ Step 298 ]]
_runClearBuffers:       6.241 ms
_runHashParticles:      1.057 ms
_runSort:          13.834 ms
_runSortPostPass:       1.939 ms
_runIndexx:             3.886 ms
_runIndexPostPass:      0.342 ms
_runFindNeighbors:    105.404 ms
_runPCISPH:           132.235 ms    3 iteration(s)
_readBuffer:            9.293 ms
------------------------------------
_Total_step_time:     274.230 ms
------------------------------------

@vellamike How do I switch to use GPU?

@msasinski
Copy link

@tarelli you may want to remove the serial number and the anonymous uuid from the posts above.

@tarelli
Copy link
Member Author

tarelli commented Feb 27, 2014

@msasinski :)

@msasinski
Copy link

@tarelli src/owOpenCLSolver.cpp line 127 should do it but I don't think this code is GPU ready

@tarelli
Copy link
Member Author

tarelli commented Feb 27, 2014

@msasinski yep, it doesn't work, logged this #22

@Neurophile
Copy link
Contributor

./build is the correct location on OSX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants