Hello

We don't have many windows-specific changes in 2.1 except some late
MSVC-related changes added after rc1. Can you try 2.1.0rc1 instead of
2.1.0? It's not visible on the download page but it's actually
available, for instance at
https://download.open-mpi.org/release/hwloc/v2.1/hwloc-win64-build-2.1.0rc1.zip

Also, can you clarify whether your cygwin working fine was using that
released zipball or a cygwin-built libhwloc?

Thanks

Brice



Le 30/06/2020 à 21:51, Jon Dart a écrit :
> I have had some trouble with even a simple hwloc program on Windows 10
> when building with Visual Studio 2019 Community Edition.
>
> The attached program works fine with cygwin when built like this:
>
> g++ -c -I/cygdrive/e/chess/hwloc-win64-build-2.2.0/include -O2
> main.cpp topo.cpp
> g++ -o main -L /cygdrive/e/chess/hwloc-win64-build-2.2.0/lib main.o
> topo.o -lstdc++ -lhwloc
>
> It just initializes the topology and prints out some basic
> information, such as:
>
> detected 1 socket(s), 8 core(s), 16 logical processing units.
>
> If I compile the same program with MSVC (64-bit compiler):
>
> cl /EHsc /c -DNOMINMAX -IE:\chess\hwloc-win64-build-2.2.0/include -O2
> main.cpp topo.cpp
> link /out:main.exe main.obj topo.obj kernel32.lib user32.lib winmm.lib
> E:\chess\hwloc-win64-build-2.2.0/lib/libhwloc.lib /nologo
> /incremental:no /opt:ref /subsystem:console
>
> Then it does not output anything, it just terminates. Running in the
> debugger indicates that there is an exception in the first call to hwloc.
>
> This program works with MSVC and the released build of version 2.0.4
> of hwloc. It does not work with 2.1.0 or 2.2.0.
>
> --Jon
>
>
> _______________________________________________
> hwloc-users mailing list
> hwloc-users@lists.open-mpi.org
> https://lists.open-mpi.org/mailman/listinfo/hwloc-users
_______________________________________________
hwloc-users mailing list
hwloc-users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/hwloc-users

Reply via email to