Skip to content

Commit

Permalink
Made all the CUDA stuff exclusive...
Browse files Browse the repository at this point in the history
--HG--
branch : week-of-code
  • Loading branch information
matthewturk committed Jul 15, 2009
1 parent c98a720 commit 96b07fb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/enzo/macros_and_parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
#endif
#endif

#if defined(ECUDA) && defined(LARGE_INTS)
#ifdef ECUDA
#ifdef LARGE_INTS
// CUDA hates LARGE_INTS, and who can blame it?
#undef LARGE_INTS
#define SMALL_INTS
#error "Sorry, you need to be using 32 bit integers with CUDA because of #define int!"
#endif // LARGE_INTS
#ifdef CONFIG_BFLOAT_8
#error "Sorry, you need to be using 32 bit precision with CUDA because of #define float!"
#endif
#endif

#include "message.h"
Expand Down

0 comments on commit 96b07fb

Please sign in to comment.