Browse Source

cuda_helper: define UINT32_MAX if not defined

seems not defined on slackware...
2upstream
Tanguy Pruvot 10 years ago
parent
commit
7bf256c81c
  1. 5
      cuda_helper.h
  2. 4
      qubit/qubit_luffa512.cu

5
cuda_helper.h

@ -13,6 +13,11 @@ @@ -13,6 +13,11 @@
#include <stdint.h>
#ifndef UINT32_MAX
/* slackware need that */
#define UINT32_MAX UINT_MAX
#endif
#ifndef MAX_GPUS
#define MAX_GPUS 16
#endif

4
qubit/qubit_luffa512.cu

@ -23,10 +23,6 @@ @@ -23,10 +23,6 @@
#include "cuda_helper.h"
#ifndef UINT32_MAX
#define UINT32_MAX UINT_MAX
#endif
typedef unsigned char BitSequence;
__constant__ uint64_t c_PaddedMessage80[16]; // padded message (80 bytes + padding)

Loading…
Cancel
Save