In file included from :1: ./src/compat/cuda/cuda_runtime.h:113:27: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar2, make_uchar2(a & 0xFF, b & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:103:42: note: expanded from macro 'make_uchar2' #define make_uchar2(a, b) ((uchar2){.x = a, .y = b}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:113:27: note: insert an explicit cast to silence this issue TEX2D(uchar2, make_uchar2(a & 0xFF, b & 0xFF)) ^~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:103:42: note: expanded from macro 'make_uchar2' #define make_uchar2(a, b) ((uchar2){.x = a, .y = b}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:113:37: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar2, make_uchar2(a & 0xFF, b & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:103:50: note: expanded from macro 'make_uchar2' #define make_uchar2(a, b) ((uchar2){.x = a, .y = b}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:113:37: note: insert an explicit cast to silence this issue TEX2D(uchar2, make_uchar2(a & 0xFF, b & 0xFF)) ^~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:103:50: note: expanded from macro 'make_uchar2' #define make_uchar2(a, b) ((uchar2){.x = a, .y = b}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:114:29: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned short' in initializer list [-Wc++11-narrowing] TEX2D(ushort2, make_ushort2(a & 0xFFFF, b & 0xFFFF)) ^~~~~~~~~~ ./src/compat/cuda/cuda_runtime.h:104:44: note: expanded from macro 'make_ushort2' #define make_ushort2(a, b) ((ushort2){.x = a, .y = b}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:114:29: note: insert an explicit cast to silence this issue TEX2D(ushort2, make_ushort2(a & 0xFFFF, b & 0xFFFF)) ^~~~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:104:44: note: expanded from macro 'make_ushort2' #define make_ushort2(a, b) ((ushort2){.x = a, .y = b}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:114:41: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned short' in initializer list [-Wc++11-narrowing] TEX2D(ushort2, make_ushort2(a & 0xFFFF, b & 0xFFFF)) ^~~~~~~~~~ ./src/compat/cuda/cuda_runtime.h:104:52: note: expanded from macro 'make_ushort2' #define make_ushort2(a, b) ((ushort2){.x = a, .y = b}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:114:41: note: insert an explicit cast to silence this issue TEX2D(ushort2, make_ushort2(a & 0xFFFF, b & 0xFFFF)) ^~~~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:104:52: note: expanded from macro 'make_ushort2' #define make_ushort2(a, b) ((ushort2){.x = a, .y = b}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:115:27: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:105:48: note: expanded from macro 'make_uchar4' #define make_uchar4(a, b, c, d) ((uchar4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:115:27: note: insert an explicit cast to silence this issue TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:105:48: note: expanded from macro 'make_uchar4' #define make_uchar4(a, b, c, d) ((uchar4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:115:37: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:105:56: note: expanded from macro 'make_uchar4' #define make_uchar4(a, b, c, d) ((uchar4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:115:37: note: insert an explicit cast to silence this issue TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:105:56: note: expanded from macro 'make_uchar4' #define make_uchar4(a, b, c, d) ((uchar4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:115:47: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:105:64: note: expanded from macro 'make_uchar4' #define make_uchar4(a, b, c, d) ((uchar4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:115:47: note: insert an explicit cast to silence this issue TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:105:64: note: expanded from macro 'make_uchar4' #define make_uchar4(a, b, c, d) ((uchar4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:115:57: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ ./src/compat/cuda/cuda_runtime.h:105:72: note: expanded from macro 'make_uchar4' #define make_uchar4(a, b, c, d) ((uchar4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:115:57: note: insert an explicit cast to silence this issue TEX2D(uchar4, make_uchar4(a & 0xFF, b & 0xFF, c & 0xFF, d & 0xFF)) ^~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:105:72: note: expanded from macro 'make_uchar4' #define make_uchar4(a, b, c, d) ((uchar4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:116:29: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(ushort4, make_ushort4(a & 0xFFFF, b & 0xFFFF, c & 0xFFFF, d & 0xFFFF)) ^~~~~~~~~~ ./src/compat/cuda/cuda_runtime.h:106:50: note: expanded from macro 'make_ushort4' #define make_ushort4(a, b, c, d) ((ushort4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:116:29: note: insert an explicit cast to silence this issue TEX2D(ushort4, make_ushort4(a & 0xFFFF, b & 0xFFFF, c & 0xFFFF, d & 0xFFFF)) ^~~~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:106:50: note: expanded from macro 'make_ushort4' #define make_ushort4(a, b, c, d) ((ushort4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:116:41: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(ushort4, make_ushort4(a & 0xFFFF, b & 0xFFFF, c & 0xFFFF, d & 0xFFFF)) ^~~~~~~~~~ ./src/compat/cuda/cuda_runtime.h:106:58: note: expanded from macro 'make_ushort4' #define make_ushort4(a, b, c, d) ((ushort4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:116:41: note: insert an explicit cast to silence this issue TEX2D(ushort4, make_ushort4(a & 0xFFFF, b & 0xFFFF, c & 0xFFFF, d & 0xFFFF)) ^~~~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:106:58: note: expanded from macro 'make_ushort4' #define make_ushort4(a, b, c, d) ((ushort4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:116:53: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(ushort4, make_ushort4(a & 0xFFFF, b & 0xFFFF, c & 0xFFFF, d & 0xFFFF)) ^~~~~~~~~~ ./src/compat/cuda/cuda_runtime.h:106:66: note: expanded from macro 'make_ushort4' #define make_ushort4(a, b, c, d) ((ushort4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:116:53: note: insert an explicit cast to silence this issue TEX2D(ushort4, make_ushort4(a & 0xFFFF, b & 0xFFFF, c & 0xFFFF, d & 0xFFFF)) ^~~~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:106:66: note: expanded from macro 'make_ushort4' #define make_ushort4(a, b, c, d) ((ushort4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:116:65: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'unsigned char' in initializer list [-Wc++11-narrowing] TEX2D(ushort4, make_ushort4(a & 0xFFFF, b & 0xFFFF, c & 0xFFFF, d & 0xFFFF)) ^~~~~~~~~~ ./src/compat/cuda/cuda_runtime.h:106:74: note: expanded from macro 'make_ushort4' #define make_ushort4(a, b, c, d) ((ushort4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ ./src/compat/cuda/cuda_runtime.h:116:65: note: insert an explicit cast to silence this issue TEX2D(ushort4, make_ushort4(a & 0xFFFF, b & 0xFFFF, c & 0xFFFF, d & 0xFFFF)) ^~~~~~~~~~ static_cast( ./src/compat/cuda/cuda_runtime.h:106:74: note: expanded from macro 'make_ushort4' #define make_ushort4(a, b, c, d) ((ushort4){.x = a, .y = b, .z = c, .w = d}) ^ ./src/compat/cuda/cuda_runtime.h:109:129: note: expanded from macro 'TEX2D' #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} ^~~ 12 errors generated when compiling for sm_30.