Browse Source

Win32 build fix after linux work (configure)

2upstream
Tanguy Pruvot 10 years ago
parent
commit
6984a001d6
  1. 3
      miner.h
  2. 6
      x11/cuda_x11_simd512.cu

3
miner.h

@ -20,6 +20,8 @@ extern "C" {
#define strncasecmp(x,y,z) _strnicmp(x,y,z) #define strncasecmp(x,y,z) _strnicmp(x,y,z)
#define strcasecmp(x,y) _stricmp(x,y) #define strcasecmp(x,y) _stricmp(x,y)
typedef int ssize_t; typedef int ssize_t;
#undef HAVE_ALLOCA_H
#undef HAVE_SYSLOG_H
#endif #endif
#ifdef STDC_HEADERS #ifdef STDC_HEADERS
@ -30,6 +32,7 @@ typedef int ssize_t;
# include <stdlib.h> # include <stdlib.h>
# endif # endif
#endif #endif
#ifdef HAVE_ALLOCA_H #ifdef HAVE_ALLOCA_H
# include <alloca.h> # include <alloca.h>
#elif !defined alloca #elif !defined alloca

6
x11/cuda_x11_simd512.cu

@ -178,7 +178,9 @@ X(j) = (u-v) << (2*n); \
__device__ __forceinline__ void FFT_16(int *y) { __device__ __forceinline__ void FFT_16(int *y) {
#if __CUDA_ARCH__ < 300 #if __CUDA_ARCH__ < 300
#ifndef WIN32
# warning FFT_16() function is not compatible with SM 2.1 devices! # warning FFT_16() function is not compatible with SM 2.1 devices!
#endif
#endif #endif
/* /*
@ -345,7 +347,9 @@ __device__ __forceinline__ void Expansion(const uint32_t *data, uint4 *g_temp4)
{ {
int i; int i;
#if __CUDA_ARCH__ < 300 #if __CUDA_ARCH__ < 300
#warning Expansion() function is not compatible with SM 2.1 Devices #ifndef WIN32
# warning Expansion() function is not compatible with SM 2.1 devices
#endif
#endif #endif
/* Message Expansion using Number Theoretical Transform similar to FFT */ /* Message Expansion using Number Theoretical Transform similar to FFT */

Loading…
Cancel
Save