-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling GAMESS in Windows with Intel Compilers, with LibXC plugin #43
Comments
Thank you for this instruction.
Please, provide this change to LibXC (https://gitlab.com/libxc/libxc) as an improvement for Win10 support, but do not remove other options. What was the reason not to use ${GMS_PATH}/tools/libxc/download-libxc.csh? One place, which should be changed, is adding |
I can work on integrating these changes for your libxc repo and testing on Windows 10. |
@saromleang, I'll be glad for your help! If you fork the |
I didn't use the download-libxc.csh script because the curl command does not work from cygwin on Windows for some reason. |
Ok. Which command for downloading is available on Windows? |
Hi, I have managed to make the download-libxc.csh script work on Cygwin. The argument
Turns out the curl command wasn't working due to some kind of certificate problem. |
The |
@FulgurIgor I am not sure if it's a problem with only my computer. I don't have access to other windows computers right now so I can't check. The Would it be acceptable to make a separate script for windows, perhaps a native windows batch script? |
Another solution might be to use:
|
@shoubhikraj, why do you add |
it depends where you are compiling. if you are compiling from windows command prompt you use '/'. if you are compiling within cygwin you can use either '-' or '/'. cygwin provides access to csh/tcsh/bash however, there is no access for shells or any linux commands via the command prompt. |
I have tested both '-' and '/' for arguments, and Intel compilers accept both everywhere, even when compiling from windows command prompt i.e. |
operating system : Windows 10
compiler : Intel oneAPI v2021 (at least MKL from base toolkit and C/C++ and Fortran compiler from HPC toolkit required). The Intel compilers also require an installation of visual studio. In my case, I used Visual Studio 2019, but earlier versions should also work.
math library : Intel MKL (supplied with oneAPI)
communication library : MS-MPI
I have already mentioned some fixes to get the default GAMESS build working on Windows with Intel compilers in #42 . This is a way of running the LibXC interface to GAMESS on windows.
For compiling LibXC:
set PATH="C:\Program Files\CMake\bin\";%PATH%
to this:
This will compile LibXC, and it will take some time. After compilation is finished, there should be "xc.lib", "xcf90.lib", and "xc_f90_lib_m.mod" in the build directory. Create a new directory gamess/libxc/ (where the gamess source files are) and then paste these files in the gamess/libxc folder.
5. When running ./config in GAMESS, choose Yes when the prompt about libxc comes up.
6. Then run compall and lked as usual. Some modifications need to be made in comp and lked scripts:
In lked (line 1221) change it to
set LIBXC_FLAGS="C:/cygwin64$GMS_PATH/libxc/xcf90.lib C:/cygwin64$GMS_PATH/libxc/xc.lib"
This is so that the libxc libraries are linked with gamess.
In comp (line 2788) change it to
set EXTRAOPT='-fpp -IC:\cygwin64\gamess\libxc'
This is so that the .mod file is accessible to the compiler when compiling the GAMESS libxc interface files.
7. The linking should run successfully to generate the gamess executable. However, the files "libifcoremd.dll" and "libmmd.dll" has to be in the same directory as the executable. These files are usually present in "C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\redist\intel64_win\compiler".
After this the GAMESS-LibXC interface should hopefully run without any issue. I have only tested it with rdft-APF-gradient.inp and rdft-He-unnamed-gradient.inp test files.
Now that Intel compilers are free, this should make compiling easier on Windows systems.
The modified comp, and lked scripts are attached:
comp.txt
lked.txt
The text was updated successfully, but these errors were encountered: