This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Terra1's profile picture

beowulf cluster program

Started by Terra1, 14 July 2015 - 07:03 PM
Terra1 #1
Posted 14 July 2015 - 09:03 PM
i am trying to make a computercraft beowulf cluster using network cables and advanced computers and i have NO IDEA how to make a program (lua skill 1/10 only hello world)
i need a program to make the thing work
the basic idea is:
have all the computers execute data by sending them through the network cables and having all the other computers work together to execute it however the source computer of the execute signal will not try to execute the code and it will instead reserve itself for executing other code (to maximize speed) i also need terminals that can access all the computers in the beowulf cluster in a single shell
i am now going to wait for someone to post a pastebin of code good for this (terminal and beowulf cluster) and explain how to set it up (or atleast add to the theory of the program)
DannySMc #2
Posted 14 July 2015 - 09:28 PM
Look at nsh, also look into the Rednet API, although this won't be faster considering only one computer will run at any given moment… So it won't maximise speed…
Edited on 14 July 2015 - 07:29 PM
Terra1 #3
Posted 14 July 2015 - 11:03 PM
Look at nsh, also look into the Rednet API, although this won't be faster considering only one computer will run at any given moment… So it won't maximise speed…
all computers will have to be turned on all at once
Cranium #4
Posted 14 July 2015 - 11:22 PM
They may be turned on all at once, but due to how ComputerCraft uses the java threads, each action performed by a computer must wait for the previous action within the game to finish. This would mean that at any given time, only one computer would be doing any 'calculations', even if the computers are networked to communicate with each other. So in reality, cluster computers wouldn't really work in ComputerCraft.
DannySMc #5
Posted 15 July 2015 - 12:31 AM
Look at nsh, also look into the Rednet API, although this won't be faster considering only one computer will run at any given moment… So it won't maximise speed…
all computers will have to be turned on all at once
- snip -

Cranium explained it better than me, but it will not do anything faster.