Browse Source

Win32 build fix after linux work (configure)

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

6
x11/cuda_x11_simd512.cu

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

Loading…
Cancel
Save