mish-cuda icon indicating copy to clipboard operation
mish-cuda copied to clipboard

How to install this in windows?

Open NotFound1911 opened this issue 4 years ago • 5 comments

Hello,how to install this in windows? I did not install successfully on windows.

NotFound1911 avatar Nov 30 '20 09:11 NotFound1911

I haven't used windows to build extensions so can't offer much advice. You'll need the Microsoft Visual Studio 2019 C/C++ compiler installed and in your path as well as ninja. Check this thread for a bit more information. Though this is untested so may not work.

thomasbrandon avatar Dec 01 '20 06:12 thomasbrandon

@NotFound1911 @thomasbrandon

I failed also...... I think it is unable to install on windows,maybe forever

SpongeBab avatar Mar 15 '21 13:03 SpongeBab

This may not allow the software to run but at least is allows it to complete the install on Windows. In csrc/msh.h, we have the following:

#ifdef __CUDACC__ #include <cuda_runtime.h> #include <c10/util/Half.h> #define GLOBAL_INLINE __forceinline__ __host__ __device__ #else #include <cmath> #define GLOBAL_INLINE __inline__ #endif

As a result Visual C++ then defines GLOBAL_INLINE as inline. Changing it to the following allowed me to run the install

#ifdef __CUDACC__ #include <cuda_runtime.h> #include <c10/util/Half.h> #define GLOBAL_INLINE __forceinline__ __host__ __device__ #else #include <cmath> #define GLOBAL_INLINE inline #endif

nlem avatar Jun 21 '21 15:06 nlem

Thanks nlem, your code fixed my issue. Now I success installed on Windows 10, CUDA 11.3 on RTX 2060

vohungvi avatar Dec 25 '22 06:12 vohungvi

Thanks nlem, real hero!

awsomespark avatar Mar 02 '24 08:03 awsomespark