version 1.221 | version 1.222 |
---|
| |
#include <cuda_runtime.h> | #include <cuda_runtime.h> |
#include <cuda.h> | #include <cuda.h> |
void cuda_errcheck(const char *msg); | void cuda_errcheck(const char *msg); |
| #ifdef WIN32 |
| #define __thread __declspec(thread) |
| #endif |
extern __thread DeviceCUDA *deviceCUDA; | extern __thread DeviceCUDA *deviceCUDA; |
#endif | #endif |
| |
| |
#endif | #endif |
| |
int isPmeProcessor(int p){ | int isPmeProcessor(int p){ |
| SimParameters *simParams = Node::Object()->simParameters; |
| if (simParams->usePMECUDA) { |
| return 0; |
| } else { |
return pencilPMEProcessors[p]; | return pencilPMEProcessors[p]; |
} | } |
| } |
| |
class NodePmeMgr : public CBase_NodePmeMgr { | class NodePmeMgr : public CBase_NodePmeMgr { |
public: | public: |