anomalous compiling time

41 views
Skip to first unread message

Daniel Fuster

unread,
Jun 8, 2026, 8:38:01 AM (3 days ago) Jun 8
to basilisk-fr
Hello

I am trying to compile this code with qcc and it takes very long in my machine (much longer than if I use gcc). The problem seems exponential as I increase the number of nested loops. Any idea/solution?

thanks

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main()
{

double a = 0;
for(int IS=0;IS<4;IS++) {
for(int i=0;i<32;i++) {    
for(int J=0;J<4;J++) {
for(int j=0;j < 32;j++) {                                                                                                                                                                                                                                                                            
        a += 5;
}
}
}
}

printf("%g \n", a);
}

Stephane Popinet

unread,
Jun 8, 2026, 8:53:59 AM (3 days ago) Jun 8
to basil...@googlegroups.com
Hi Daniel,

use -disable-dimensions.

Stephane
> --
> You received this message because you are subscribed to the Google
> Groups "basilisk-fr" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to basilisk-fr...@googlegroups.com <mailto:basilisk-
> fr+unsu...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> basilisk-fr/
> CAP_p0Rez7KfiQFPP4dOAHZvr8Z5QTwK2Ru_pO_5DG1RMwvP6Cw%40mail.gmail.com
> <https://groups.google.com/d/msgid/basilisk-fr/
> CAP_p0Rez7KfiQFPP4dOAHZvr8Z5QTwK2Ru_pO_5DG1RMwvP6Cw%40mail.gmail.com?
> utm_medium=email&utm_source=footer>.


Wojciech Aniszewski

unread,
Jun 8, 2026, 8:58:52 AM (3 days ago) Jun 8
to Daniel Fuster, basilisk-fr
Hola Daniel,

also for posterity, the actual binary is actually created instantaneously, but qcc remains tied in the dimensional testing
in the .q... subdir. So the 'partizan solution' is to kill qcc once binary is created, and thus get out of the long compilation (even w/o -disable-dimensions)
v
> --
> You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/basilisk-fr/CAP_p0Rez7KfiQFPP4dOAHZvr8Z5QTwK2Ru_pO_5DG1RMwvP6Cw%40mail.gmail.com.

--
/^..^\
( (••) ) Wojciech (Vôitek) ANISZEWSKI
(|)_._(|)~ Research Assistant @ Univ. Paris-Saclay (EM2C)
GPG ID : AC66485E
Twitter : @echo_dancers3
Mastodon: @w...@fediscience.org
BlueSky : @aniszewski.bsky.social
Scholar : https://tinyurl.com/y28b8gfp
OrcId : https://orcid.org/0000-0002-4248-1194
RG : https://www.researchgate.net/profile/Wojciech_Aniszewski

Daniel Fuster

unread,
Jun 8, 2026, 10:10:45 AM (3 days ago) Jun 8
to Stephane Popinet, basil...@googlegroups.com
Yes, it works! another reason to leave disable dimensions only as an option :)

thanks so much for the quick response (also to W!)

To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/basilisk-fr/8f66967c-4a65-471d-8c9f-9ee0da8e1979%40basilisk.fr.

Daniel Fuster

unread,
Jun 8, 2026, 10:35:07 AM (3 days ago) Jun 8
to Stephane Popinet, basil...@googlegroups.com
of course I meant

"another reason to leave CHECK dimensions only as an option"

...

jmlopez...@gmail.com

unread,
Jun 10, 2026, 5:08:29 AM (19 hours ago) Jun 10
to basilisk-fr
I agree! 
Reply all
Reply to author
Forward
0 new messages