Skip to content

fixed a bug in building Windows Visual Studio 2019? #71

@TangLaoya

Description

@TangLaoya

Dear all,

When I am trying to build the powerful Exasim in Windows, there are some compiling errors when building Kokkos:
Kokkos_Core.cpp
K:\GitHub\Exasim\Exasim\kokkos\core\src\impl/KokkosExp_Host_IterateTile.hpp(1473): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
K:\GitHub\Exasim\Exasim\kokkos\core\src\Kokkos_View.hpp(884): error C2535: “Kokkos::View<D,P...>::View(enable_if<0,const std::string&>::type,const Args...)”: 已经定义或声明成员函数
K:\GitHub\Exasim\Exasim\kokkos\core\src\Kokkos_View.hpp(829): note: 参见“Kokkos::View<D,P...>::View”的声明
K:\GitHub\Exasim\Exasim\kokkos\core\src\Kokkos_View.hpp(1103): note: 查看对正在编译的 类 模板 实例化“Kokkos::View<D,P...>”的引用
NMAKE : fatal error U1077: “"C:\Program Files\CMake\bin\cmake.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"”: 返回代码“0x2”
Stop.

After modified latest code
Exasim\kokkos\core\src\Kokkos_View.hpp
line 883 from
template <class... Args>
to
template <class = void, class... Args>

the compile successed.

I don't know whether it could lead to some other problems.

Thanks,
Tang Laoya

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions