Commit 8194b0cc authored by BRAMAS Berenger's avatar BRAMAS Berenger

Add a kernel capacities that enable P2P for cuda

parent 210e6639
......@@ -99,6 +99,26 @@ class FStarPUAllCpuCudaCapacities : public BaseClass, public FStarPUAbstractCapa
public:
using BaseClass::BaseClass;
};
template <class BaseClass>
class FStarPUCudaP2PCapacities : public BaseClass, public FStarPUAbstractCapacities {
bool check(const FStarPUTypes inPu) const override{
return inPu == FSTARPU_CPU_IDX;
}
public:
using BaseClass::BaseClass;
bool supportP2P(const FStarPUTypes inPu) const override {
return inPu == FSTARPU_CPU_IDX || inPu == FSTARPU_CUDA_IDX;
}
bool supportP2PExtern(const FStarPUTypes inPu) const override {
return inPu == FSTARPU_CPU_IDX || inPu == FSTARPU_CUDA_IDX;
}
bool supportP2PMpi(const FStarPUTypes inPu) const override {
return inPu == FSTARPU_CPU_IDX || inPu == FSTARPU_CUDA_IDX;
}
};
#endif
#ifdef SCALFMM_ENABLE_OPENCL_KERNEL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment