Made it possible to refer t oa GPUDevice from code compile with a regular C++ compiler

This commit is contained in:
Benoit Steiner
2015-11-23 10:03:53 -08:00
parent 1e04059012
commit df31ca3b9e
2 changed files with 3 additions and 5 deletions

View File

@@ -27,7 +27,6 @@ class StreamInterface {
virtual void deallocate(void* buffer) const = 0;
};
#if defined(__CUDACC__)
static cudaDeviceProp* m_deviceProperties;
static bool m_devicePropInitialized = false;
@@ -107,7 +106,6 @@ class CudaStreamDevice : public StreamInterface {
const cudaStream_t* stream_;
int device_;
};
#endif // __CUDACC__
struct GpuDevice {
// The StreamInterface is not owned: the caller is