It is currently Mon Apr 23, 2018 3:24 am Advanced search

early exit suspension/ ram usage?

Code won't compile? Found a bug? Post here!

early exit suspension/ ram usage?

Postby kromedisk » Thu Feb 11, 2010 10:28 am

I am suspended due to an Early exit error. (c++ code runs fine locally on my limited tests)


"Your Submission Error
Early Exit
Submission crashed, took longer than 10 minutes to run, or something else."

I seem to have played about 10 games succesfully.

Whats the ram limitation, I assume at least the 2 AI's are sharing a 4 gig mem space, so I guess I should be ok to allocate upto 2 gig? (I was allocating 250 meg, but have dropped it down to test).

Does longer than 10 mins to run mean the startup time or all your 1 seconds added up?

Mike.
kromedisk
Cadet
 
Posts: 4
Joined: Thu Feb 11, 2010 10:10 am

Re: early exit suspension/ ram usage?

Postby dutchflyboy » Thu Feb 11, 2010 11:53 pm

Seriously, what are you doing with 250 MB of RAM?? Just count it up: 1 bit for each cell, let's take a 50x50 playing field -> 2500 bits for the field. Then 64 bytes per position (two int: x, y) and a byte for the direction (that's already overkill). Let's add another 200 byte of overhead (quite generous) -> about 640 bytes. That means 250*1024*1024/640 = 409600 games in the memory at the same time. What are you doing? That's enough memory to store all games that are 11 plies ahead, 2.5 times.
dutchflyboy
Colonel
 
Posts: 57
Joined: Sun Feb 07, 2010 1:08 am

Re: early exit suspension/ ram usage?

Postby kromedisk » Mon Feb 15, 2010 2:36 am

Yeah but as I'm lazy so its 8 bits per cell.
But yeah a huge depth search tree of all possible moves.

Anyway I found my problem was time spent constructing my pool of stored positions on the first game turn, caused my timeout code to sometimes fire on game turn 1 before I had even made the root copy of the board. My code didnt like not having a root board.
kromedisk
Cadet
 
Posts: 4
Joined: Thu Feb 11, 2010 10:10 am

Re: early exit suspension/ ram usage?

Postby amstan » Mon Feb 15, 2010 4:50 am

Glad you fixed it.
Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron