On Thursday, May 5, 2016 at 8:14:41 PM UTC+2, astrid wrote:
> Hello,
> 
> I got qualified for DCJ at round 1B, and I have trouble when trying to use 
> the DCJ testing tool. 
> 
> Here is my test file, named mytest.c:
> 
> #include <message.h>
> #include <stdio.h>
> 
> int main() {
>   if (MyNodeId() == 0) {
>     printf("Hello world!\n");
>   }
> }
> 
> I downloaded the tool for linux and compiled with:
> dcj build --source=mytest.c
> 
> There was no compiling error. I try to execute with: 
> dcj run --executable=./mytest --nodes=2 --output=all
> 
> And I got the following error:
> Error when executing command 
> (u'/home/astrid/discodejam16/tool/dcj/../executable/parunner', '--n', '2', 
> '--stdout', 'all', '--stderr', 'all', './mytest'): OSError(8, 'Exec format 
> error').
> 
> This is the same whatever the number of nodes I ask for.
> I also tried to go in the 'executable' directory and launch:
> ./parunner ../../mytest -n=2
> 
> I got the following error:
> bash: ./parunner: cannot execute binary file: Erreur de format pour exec()
> 
> Could someone help me?
> Thanks,
> Astrid

Hi Astrid,

This probably happens because the binary you downloaded is for a different 
architecture than your Linux distro. Try something like:

  $ file /home/astrid/discodejam16/tool/dcj/../executable/parunner
  $ uname -a

... to figure out what version you have and what version you need. You probably 
have to download the tool for your platform, or install compatibility libraries 
(for example, to run IA-32 binaries on x86_64 Linux).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/e7132bd2-cbfa-4b05-b895-cffd0b5cbbae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to