|Slideshow ^ |< << Slide 2 of 8 >> >||
1. Cross-compile WRF for Windows Azure
For many HPC applications, porting from Linux to Windows is as straightforward as recompiling the application source code with a special toolchain. More complex applications may require a little more work, but even complex HPC applications can be ported in this way. Visit the PToolsWin page for more information.
This step of the tutorial will guide you through the process of recompiling WRF 3.3.1 with the PToolsWin development environment. PToolsWin generates native Windows code (no intermediate POSIX layer is required), so your application will perform as well as a native Windows application.
Before you continue, make sure you have these software prerequisites:
1.2. Build WRF as a Windows Executable
- Open a command line in your HPC Linux distro and load the PToolsWin module:
- Begin by creating a directory for WRF:
- Download and unpack the WRF source code:
- Configure your environment. WRF relies on several environment variables to locate NetCDF and select the appropriate configuration files:
Configure WRF. Select Windows 64-bit, PToolsWin (dmpar) (Option 7) and basic nesting (Option 1):
Compile WRF 1. There is a race condition in the build process, so it's a good idea to do a second, serial compilation after the first:
Verify that the ptoolswin module is loaded before you begin compiling. You can view loaded modules with the command module list
You should now have several program executables in the main folder:
[paratools07] 136 > echo $WRFDIR /home/livetau/windows/WRF [paratools07] 137 > pwd /home/livetau/windows/WRF/WRFV3 [paratools07] 138 > ls main/*.exe main/ndown.exe main/nup.exe main/real.exe main/tc.exe main/wrf.exe [paratools07] 139 >
If any of these .exe files are missing from main, check configure.log.2 for errors ( do a case-insensitive search for "Error") and try re-compiling. Otherwise, continue to Step 3.
|/Step1 /Step2 /Step3 /Step4 /Step5 /Step6 /Step7 /ViewAll|