Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Teaching and learning resources • Re: Super-cheap Computing Cluster for Learning

$
0
0
The result was

Code:

$ ./go24 # Pi B+ 700 MHzAdvent of Code 2024 Day 24 Crossed Wires (GOMAXPROCS=1)Part 1 The z wires output 568353998Part 2 Swap wires brp,bwv,dmk,dph,jbj,jnf,nfk,pgkTotal execution time 548.010919033 seconds.
Shy looked shyly at the output and meowed, but the answer is wrong.

I checked, and the output was supposed to be

Code:

$ ./go24 # Pi 4B 1500 MHzAdvent of Code 2024 Day 24 Crossed Wires (GOMAXPROCS=4)Part 1 The z wires output 61495910098126Part 2 Swap wires css,cwt,gdd,jmv,pqt,z05,z09,z37Total execution time 4.693544958 seconds.
I suspect the difficulty is that int defaults to 32 bits on the Pi B but I assumed integers were 64 bits when I translated the program into Go.

This will have to be fixed before working on the MPI code.

Statistics: Posted by ejolson — Thu May 15, 2025 6:44 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles