8 #ifndef PRESYNAPTICPERSPECTIVEGPUDELIVERY_HPP_ 9 #define PRESYNAPTICPERSPECTIVEGPUDELIVERY_HPP_ 11 #include "HyPerDelivery.hpp" 12 #include "arch/cuda/CudaBuffer.hpp" 13 #include "cudakernels/CudaRecvPre.hpp" 48 virtual void deliver()
override;
50 virtual void deliverUnitInput(
float *recvBuffer)
override;
55 int initialize(
char const *name,
HyPerCol *hc);
57 virtual void setObjectType()
override;
61 virtual Response::Status
62 communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message)
override;
64 virtual Response::Status
65 setCudaDevice(std::shared_ptr<SetCudaDeviceMessage const> message)
override;
67 virtual Response::Status allocateDataStructures()
override;
69 void initializeRecvKernelArgs();
71 void allocateThreadGSyn();
75 std::vector<std::vector<float>> mThreadGSyn;
77 PVCuda::CudaBuffer *mDevicePatches =
nullptr;
78 PVCuda::CudaBuffer *mDeviceGSynPatchStart =
nullptr;
84 #endif // PRESYNAPTICPERSPECTIVEGPUDELIVERY_HPP_
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual void deliver() override
virtual void ioParam_receiveGpu(enum ParamsIOFlag ioFlag) override
receiveGpu: PresynapticPerspectiveGPUDelivery always sets receiveGpu to true. The receiveGpu=false ca...