Explore Continuous CA with Ready

For discussion of other cellular automata.
User avatar
Hektor
Posts: 89
Joined: November 3rd, 2011, 2:37 pm

Re: Explore Continuous CA with Ready

Post by Hektor » March 24th, 2012, 8:07 am

Great, now it works, but most of the patterns give an error:

Code: Select all

An error occurred when running the simulation:

OpenCL_RD::Update : clEnqueueNDRangeKernel failed: Invalid work group size
Maybe I have the wrong version of OpenCL?

User avatar
Andrew
Moderator
Posts: 942
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Explore Continuous CA with Ready

Post by Andrew » March 24th, 2012, 4:53 pm

Hektor wrote:An error occurred when running the simulation:
OpenCL_RD::Update : clEnqueueNDRangeKernel failed: Invalid work group size
Can you give an example of one pattern (not from the CPU-only folder) that fails and one that succeeds?

Do things improve if you use Action > Select OpenCL Device and select the CPU device?

Also show us the output from Action > Show OpenCL Diagnostics. Here's the info from my iMac:

Code: Select all

Found 1 platform(s):
Platform 1:
2304 : FULL_PROFILE
2305 : OpenCL 1.0 (Jan  2 2011 18:00:11)
2306 : Apple
2307 : Apple
2308 : 

Found 2 device(s) on this platform.
Device 1:
4139 : ATI Radeon HD 6970M
4140 : AMD
4141 : 1.0
4142 : FULL_PROFILE
4143 : OpenCL 1.0 
4144 : cl_APPLE_gl_sharing
Device 2:
4139 : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
4140 : Intel
4141 : 1.0
4142 : FULL_PROFILE
4143 : OpenCL 1.0 
4144 : cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_APPLE_gl_sharing cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions 
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Andrew
Moderator
Posts: 942
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Explore Continuous CA with Ready

Post by Andrew » March 24th, 2012, 5:21 pm

Attached is a .vti file that implements a 3D cellular automaton using rule 4,5/5. This is the notation used in the applet created by Carter Bays and his colleagues at http://www.cse.sc.edu/~bays/d4d4d4/ (warning: the applet is very slow to load).

The initial pattern has a glider in one corner and a random blob in the middle.

Tim, creating this file revealed a couple of things we should add to the next version of Ready:

- An option to specify the rendered cell shape (octahedron, cube, sphere?).
- An easier way for overlays to initialize a single cell; eg. setcell3D x="5" y="3" z="2" value="1"
(have a look at the ugly way I created the glider).

I also noticed a bug: Load conway_life.vti then save it as another vti file. Loading the new file fails due to ampersand errors in the kernel code.
Attachments
3D-CA.vti.zip
(95.06 KiB) Downloaded 225 times
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
Pilou
Posts: 63
Joined: January 20th, 2012, 5:08 am
Contact:

Re: Explore Continuous CA with Ready

Post by Pilou » March 24th, 2012, 5:52 pm

Open the file 3D-Ca.vti inside ParaView works fine :)

I obtain a very big cube 100*100*100 made with many little Cubes :wink:
Is beautiful that please without concept :)

User avatar
Wojowu
Posts: 210
Joined: October 1st, 2011, 1:24 pm

Re: Explore Continuous CA with Ready

Post by Wojowu » March 25th, 2012, 10:46 am

The ability to change look of cells (cubes, spheres) instead of mixed soup of cells would make 3D discrete CA better. Until then good choice is 3DLife.py from Golly Scripts Database
First question ever. Often referred to as The Question. When this question is asked in right place in right time, no one can lie. No one can abstain. But when The Question is asked, silence will fall. Silence must fall. The Question is: Doctor Who?

User avatar
Tim Hutton
Posts: 64
Joined: May 20th, 2010, 7:30 am
Contact:

Re: Explore Continuous CA with Ready

Post by Tim Hutton » March 28th, 2012, 5:16 pm

We've posted a new version, 0.2.2, that should hopefully fix the work group size problems mentioned above, and the save/reload issue. Please give it a go and let us know if it works.
https://code.google.com/p/reaction-diffusion/

User avatar
Wojowu
Posts: 210
Joined: October 1st, 2011, 1:24 pm

Re: Explore Continuous CA with Ready

Post by Wojowu » March 29th, 2012, 12:53 pm

Everything now works great, but pulsate.vti significantly slows down my computer. I know it may be fault of my hardware, but I want to ask: is that happening only to me?
First question ever. Often referred to as The Question. When this question is asked in right place in right time, no one can lie. No one can abstain. But when The Question is asked, silence will fall. Silence must fall. The Question is: Doctor Who?

User avatar
Hektor
Posts: 89
Joined: November 3rd, 2011, 2:37 pm

Re: Explore Continuous CA with Ready

Post by Hektor » March 30th, 2012, 11:26 am

Everything runs fine for me now.
but pulsate.vti significantly slows down my computer
pulsate is a bit slow for me too, but I don't think it's ready's fault...

Post Reply