Skip to content

Commit 486de21

Browse files
btiplitzdanpovey
authored andcommitted
[src] Fix Windows cuda build failure (use C++11 standard include) (#2880)
1 parent d82fcc6 commit 486de21

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/cudamatrix/cu-matrixdim.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,10 @@
2626
/*
2727
* Typedefs needed for ANSI-C interface of CUDA wrappers
2828
*/
29-
#ifdef _MSC_VER
30-
typedef unsigned __int32 uint32_cuda;
31-
typedef __int32 int32_cuda;
32-
typedef __int32 MatrixIndexT_cuda; // you'd have to change this if you changed MatrixIndexT from int32.
33-
#else
34-
#include <stdint.h>
35-
typedef uint32_t uint32_cuda;
36-
typedef int32_t int32_cuda;
37-
typedef int32_t MatrixIndexT_cuda; // you'd have to change this if you changed MatrixIndexT from int32.
38-
#endif
29+
#include <cstdint>
30+
typedef uint32_t uint32_cuda;
31+
typedef int32_t int32_cuda;
32+
typedef int32_t MatrixIndexT_cuda; // you'd have to change this if you changed MatrixIndexT from int32.
3933

4034
template<typename Real>
4135
struct MatrixElement {

0 commit comments

Comments
 (0)