+fix for b8_t and b16_t

This commit is contained in:
Evghenii
2014-01-27 14:30:52 +01:00
parent 5885d47717
commit 711b4508c9
2 changed files with 7 additions and 1 deletions

View File

@@ -50,8 +50,13 @@ namespace parser
void printHeader()
{
std::stringstream s;
#if 0
s << "template<int N> struct __align__(N) b8_t { unsigned char _v[N]; __device__ b8_t() {}; __device__ b8_t (const int value) {}}; \n";
s << "template<int N> struct __align__(2*N) b16_t { unsigned short _v[N]; __device__ b16_t() {}; __device__ b16_t(const int value) {}}; \n";
#else
s << "template<int N> struct b8_t { unsigned char _v[N]; __device__ b8_t() {}; __device__ b8_t (const int value) {}}; \n";
s << "template<int N> struct b16_t { unsigned short _v[N]; __device__ b16_t() {}; __device__ b16_t(const int value) {}}; \n";
#endif
s << "struct b8d_t { unsigned char _v[1]; }; \n";
s << "struct b16d_t { unsigned short _v[1]; }; \n";

View File

@@ -1,6 +1,7 @@
CUDA55 = /usr/local/cuda-5.5
CUDA60 = /usr/local/cuda-6.0
CUDA55 = /opt/cuda/5.5
CUDA60 = /opt/cuda/5.5
all: ptxgen55 ptxgen60
ptxgen60: ptxgen.cpp