/RTCs compiler option

  • Thread starter Thread starter bpluymer
  • Start date Start date
B

bpluymer

Hello,

I have a problem with my C++ code in that my code is faster in Debug
mode than in Release mode. The reason for this are calls upon
routines from a C compiled lib that I am using (Umfpack).

When I compile my code with the /RTCs option (like in Debug mode) the
Umfpack routines I call upon are fast.

When I do not use /RTCs but the "default" option of Visual Studio
.NET,
the Umfpack routines I call upon are very slow (however I link with
the same Umfpack_43.lib file).

Does anybody know what might be the problem?

Thanks,
Bert

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
bpluymer said:
Hello,

I have a problem with my C++ code in that my code is faster in Debug
mode than in Release mode. The reason for this are calls upon
routines from a C compiled lib that I am using (Umfpack).

When I compile my code with the /RTCs option (like in Debug mode) the
Umfpack routines I call upon are fast.

When I do not use /RTCs but the "default" option of Visual Studio
NET,
the Umfpack routines I call upon are very slow (however I link with
the same Umfpack_43.lib file).

Does anybody know what might be the problem?

Thanks,
Bert

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

How weird. Here's a wild guess. Let's assume there are two versions of
umpack, debug and release. LEts also assume that your release version calls
the dbug version of umfpack. Now, I don't know well hoew debuggers work
interbnally but I guess there's code within that sets up certain things. My
guess is that each call to umfpack would force it do the setup and that is
lost afterwards. The debug version of your code retains these settings. Does
this make sense?

/ Fredrik
 
Hi Fredrik,

I understand what you mean, but linking to the debug version of
Umfpack does not change the behaviour. Well it does in the sense that
everything becomes slower, but calls made with the /RTCs are still a
lot faster than calls made without it.

Regards,
Bert

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top