Windows x64 support

5 posts / 0 new
Last post
christianh
Offline
Joined: 2014-04-04
Windows x64 support

Hello,

I'm using JModelica.org SDK 1.11 on Windows 7 x64. Since I'm facing memory errors I would like to use JModelica.org with x64. Two years ago user chria wrote about this topic "There are no known limitations of using JModelica with 64bit packages, both for Python and Java. Our SDK and releases for Windows however only supports 32bits." (http://www.jmodelica.org/5181).

Is this statement still up to date? What I need to change in the SDK to make it x64-compatible.

Best regards,

Christian

christianh
Offline
Joined: 2014-04-04
An statement to this topic

An statement to this topic would be great. With Python x32 only 2GB are accessible and due to memory fragmentation it's actually only 1.3GB.

jmattsson
Offline
Joined: 2009-10-18
GCC + Python packages

Sorry for the delay.

Since this autumn, support for building 64-bit is much better than before.

Mainly, you would need to get a GCC version that supports 64-bit targets. The only such version we know our build scripts work with is the TDM version, but there are performance issues using CasADi with that one. Additionally, you would have to install 64-bit versions of all the required Python packages. I think that is enough, but might be missing something, and you might get build problems.

I can probably advise you on any build problems that do pop up.

Jesper

 

christianh
Offline
Joined: 2014-04-04
Hello Jesper, I tried to

Hello Jesper,

I tried to compile JModelica for x64 in December the last time. Compiling IPOPT for x64 is also necessary I guess, but that's not a problem. Also for compiler flags in configure.sh -m32 must be replaced by -m64. From the changelog for SDK 1.10 it seems to me that x64 support was only meant for x64 FMU support but not overall x64 support.

Here are the issues, why I stopped:

1. One has to specify a host variable (--host=x86_64-w64-mingw32) so the correct compilers are used, for example x86_64-w64-mingw32-gcc.exe instead of gcc.exe. I modified the line $SRC_HOME/configure "CC.... in configure.sh, but it was not forwarded to the script and therefore the compiler tests failed.

2. The complete Java environment is still 32bit. Is necessary to replace these packages too?

3. During the compilation of JModelica.org a few things are compiled with Python*. Which python directory is used is read a single time during the SDK installation and written to a config file of MSYS. This was hard to find and I have no clue where else 32bit things are hidden.

*you see this if you compile JModelica.org with a numpy version higher than 1.6.2. The build process fails.

Best regards

Christian

AndriaMa
Offline
Joined: 2017-06-08
Hello, Did you manage to use

Hello,

Did you manage to use JModelica with python x64 and did it solve your memory issues? I also run into the same memory issues with python 32 bit, and want to use it with python x64 but i have no clue where to start with and what are the packages that i have to rebuild/reinstall. If you could provide more information.

Thanks in advance,

Kind Regards,

Andria

Login or register to post comments