1ced7671c18e115ac3c3f54abfaaafcc6d33edc4cPeter Collingbourne/* Minimal declarations for CUDA support. Testing purposes only. */ 2ced7671c18e115ac3c3f54abfaaafcc6d33edc4cPeter Collingbourne 3bf36e25224b959595af84337339103ebc542ff8cPeter Collingbourne#include <stddef.h> 4bf36e25224b959595af84337339103ebc542ff8cPeter Collingbourne 5ced7671c18e115ac3c3f54abfaaafcc6d33edc4cPeter Collingbourne#define __constant__ __attribute__((constant)) 6ced7671c18e115ac3c3f54abfaaafcc6d33edc4cPeter Collingbourne#define __device__ __attribute__((device)) 7ced7671c18e115ac3c3f54abfaaafcc6d33edc4cPeter Collingbourne#define __global__ __attribute__((global)) 8ced7671c18e115ac3c3f54abfaaafcc6d33edc4cPeter Collingbourne#define __host__ __attribute__((host)) 9ced7671c18e115ac3c3f54abfaaafcc6d33edc4cPeter Collingbourne#define __shared__ __attribute__((shared)) 10651f13cea278ec967336033dd032faef0e9fc2ecStephen Hines#define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__))) 11bf36e25224b959595af84337339103ebc542ff8cPeter Collingbourne 12bf36e25224b959595af84337339103ebc542ff8cPeter Collingbournestruct dim3 { 13bf36e25224b959595af84337339103ebc542ff8cPeter Collingbourne unsigned x, y, z; 1478dd67e78c50a7abdc7c358e5eac1770d5fea22aPeter Collingbourne __host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {} 15bf36e25224b959595af84337339103ebc542ff8cPeter Collingbourne}; 16bf36e25224b959595af84337339103ebc542ff8cPeter Collingbourne 17bf36e25224b959595af84337339103ebc542ff8cPeter Collingbournetypedef struct cudaStream *cudaStream_t; 18bf36e25224b959595af84337339103ebc542ff8cPeter Collingbourne 19bf36e25224b959595af84337339103ebc542ff8cPeter Collingbourneint cudaConfigureCall(dim3 gridSize, dim3 blockSize, size_t sharedSize = 0, 20bf36e25224b959595af84337339103ebc542ff8cPeter Collingbourne cudaStream_t stream = 0); 21