diff --git a/examples_ptx/ptxcc/PTXParser.h b/examples_ptx/ptxcc/PTXParser.h index e3f5b80f..b7fc35e1 100644 --- a/examples_ptx/ptxcc/PTXParser.h +++ b/examples_ptx/ptxcc/PTXParser.h @@ -50,8 +50,13 @@ namespace parser void printHeader() { std::stringstream s; +#if 0 s << "template struct __align__(N) b8_t { unsigned char _v[N]; __device__ b8_t() {}; __device__ b8_t (const int value) {}}; \n"; s << "template struct __align__(2*N) b16_t { unsigned short _v[N]; __device__ b16_t() {}; __device__ b16_t(const int value) {}}; \n"; +#else + s << "template struct b8_t { unsigned char _v[N]; __device__ b8_t() {}; __device__ b8_t (const int value) {}}; \n"; + s << "template 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"; diff --git a/examples_ptx/ptxgen/Makefile b/examples_ptx/ptxgen/Makefile index 48b3b7ea..3e47d89e 100644 --- a/examples_ptx/ptxgen/Makefile +++ b/examples_ptx/ptxgen/Makefile @@ -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