[AMBER] fatal error: Windows.h: No such file or directory

From: Jesse Aiton via AMBER <amber.ambermd.org>
Date: Mon, 22 Jan 2024 17:52:46 -0800

Hello Amber Folks,

I deployed Amber22 with Ubuntu 20.04 and the same CMAKE options as below for another client and it installed/worked.

My current client has a very similar setup (Amber22, Ubuntu 20.04, Nvidia 525), yet running ./run_cmake fails with:

/home/*******/Downloads/amber22_src/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: Windows.h: No such file or directory
    1 | #include <Windows.h>
      | ^~~~~~~~~~~
compilation terminated.

Not sure why it would be looking for a Windows header file or why it wants to fail there instead of just a warning. I tried the possible resolutions on this thread with no luck:

http://archive.ambermd.org/202212/0092.html


Here’s my new system’s info. Let me know if you'd like any other information:

  cmake $AMBER_PREFIX/amber22_src \
    -DCMAKE_INSTALL_PREFIX=/opt/amber22 \
    -DCOMPILER=GNU \
    -DNCCL=TRUE \
    -CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda \
    -DMPI=TRUE -DCUDA=TRUE -DINSTALL_TESTS=TRUE \
    -DDOWNLOAD_MINICONDA=TRUE \
    2>&1 | tee cmake.log

      
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.125.06 Driver Version: 525.125.06 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:41:00.0 On | N/A |
| 0% 50C P8 22W / 270W | 398MiB / 8192MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1793 G /usr/lib/xorg/Xorg 71MiB |
| 0 N/A N/A 2587 G /usr/lib/xorg/Xorg 186MiB |
| 0 N/A N/A 2767 G /usr/bin/gnome-shell 113MiB |
| 0 N/A N/A 2862 G ...mviewer/tv_bin/TeamViewer 12MiB |

Thanks for the help!

- Jesse

_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Jan 22 2024 - 18:00:02 PST
Custom Search