Swistakk's blog

By Swistakk, history, 8 years ago, In English

Hello. It has proved to be not well known that there is currently going DCJ practice round! Everybody who is going to participate should take a part in it to familiarize with distributed environment! Here it is: https://codejam.withgoogle.com/codejam/contest/6264486/dashboard Info about it was written in a mail which looked like it doesn't contain any interesting info, so probably most users disregarded it and don't know about those rounds. Thanks to zholnin for letting me know!

  • Vote: I like it
  • +101
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Does anybody know how to add own compilation flags to that thingy?

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +15 Vote: I do not like it

    Compilation flags can be changed in the dcj/config.json file.

»
8 years ago, # |
  Vote: I like it +50 Vote: I do not like it

Paste it into your template and you will write your solutions 2 times faster!

some C++ code
»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Has anyone managed to get the local testing tool working on Ubuntu with a C++ solution? All I get is a bunch of undefined references to MyNodeId() etc. :(

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +10 Vote: I do not like it

    I have no idea why, but change #include "message.h" to #include <message.h> (the same goes for problem_name)

    • »
      »
      »
      8 years ago, # ^ |
      Rev. 2   Vote: I like it +8 Vote: I do not like it

      You can keep #include <message.h> and #include <problem.h>. dcj.sh will automatically include all header files from the includes-folder. So simply move problem.h into this folder. message.h will already be there.

  • »
    »
    8 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    You can do the same way we did last year: Build it yourself (with zeus and message included, both .h and .c files). Then use PARunner tool to run it manually.

    I build it with MSVC 2013, then run like this:

    parunner.exe -n=2 -trace_comm=false -stderr="tagged" DGCJ.exe

    These are just example options. works like a charm..

    PARunner is in one of subfolders. Swistakk should be especially happy to use it, because some of the messages it prints are in Polish :)

»
8 years ago, # |
  Vote: I like it +23 Vote: I do not like it

Anyone knows if there is going to be a practice round before Round 2 ?

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +33 Vote: I do not like it

    From Google Code Jam discussion group:

    From: Pablo Heiber 	
     
    Hi Artsem,
    
    Thanks for checking in. We are still working on trying to make it happen. We had a dependency cease to exist so we are doing some reworking of the system to get around that. If we can have it fully tested before the weekend (we are trying), we will put up a new practice round. This is likely not going to start before Thursday, though.
    
    Best,
    Pablo
    
    • »
      »
      »
      8 years ago, # ^ |
        Vote: I like it +5 Vote: I do not like it

      According to a mail received today:

      A Distributed Code Jam Practice Round, featuring all of the 2015 DCJ problems and 2016 DCJ Round 1 problems from our Past Problems page, will open tomorrow June 8 at 22:00 UTC and will close June 10 at 22:00 UTC.

      Link to Practice Round