🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.transputer
Article #226

Questions about 3L's Parallel C.

#226
From: Peder Pedersen
Date: Mon, 21 Aug 1989 09:52
39 lines
2108 bytes
I have problems using 3L's Parallel C on a MicroWay Quadputer.

I have made a lot of Cellular Automata's on a PC-AT using TURBO- and
Microsoft-C. Now I am porting this code to the transputers.
(There are four transputeres on the Quadputer.) I tried the same way
as the Mandelbrot-demo (i.e. using treads).

master task:
send()     : split up the array in packets
receive() : collect the pactets and put them back to the array
main()     : set up pointers to the proper arrays,
            send() reads from array1, receive() puts into array2,
            (and at next generation we switch arrays (mat's))
            write results for every generation to disk.

worker task :
reads the input-packet, checks for collision, do the transport,
and put the result into the output-packet.


The program runs, but it produce wrong results, and sometimes it even hangs.
Using printf() as debugging-tool (it is not *very* god) it seems to me that
I have a problem with semaphors. sema_wait() doesn't wait ???

(The Mandelbrot-demo works fine.)
The algorithms I use, work properly with ordinary C on the PC-AT.

Maybe some of you could give me some hints ?


Peder Pedersen.
----------------------------------------------------------------------------
-    Peder Pedersen, Rogaland University Center, Stavanger, NORWAY.        -
-    internet: peder%hsr.uninett@tor.nta.no                                -
-    bitnet: peder%hsr.uninett@norunix.bitnet (UNSTABLE)                   -
-                                                                          -
-    Here is room for a joke (Let's hope it's gonna be a good one).        -
----------------------------------------------------------------------------
Technical Details
Message-ID: <109*peder@hsr.uninett>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!NAC.NO!peder%hsr.uninett

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!NAC.NO!peder%hsr.uninett
From: peder%hsr.uninett@NAC.NO (Peder Pedersen)
Newsgroups: comp.sys.transputer
Subject: Questions about 3L's Parallel C.
Message-ID: <109*peder@hsr.uninett>
Date: 21 Aug 89 09:52:00 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 39