include/ff/tpcnode.hpp
/**
     * Constructor used for stream-based computation.
     * It builds the TPC node for the device.
     * 
     * @param alloc the allocator to use for allocating 
     * device memory. By default it is used an internal
     * private allocator.
     *
     */
Constructor used for stream-based computation.
It builds the TPC node for the device.

@param alloc the allocator to use for allocating
device memory. By default it is used an internal
private allocator.
Constructor used for stream - based computation . It builds the TPC node for the device . @param alloc the allocator to use for allocating device memory . By default it is used an internal private allocator .
ff_tpcNode_t(ff_tpcallocator *alloc = nullptr):
        tpcId(-1),deviceId(-1),my_own_allocator(false),oneshot(false),oneshotTask(nullptr),allocator(alloc) {
        if (allocator == nullptr) {
            my_own_allocator = true;
            allocator = new ff_tpcallocator;
            assert(allocator);
        }
    }
ff_tpcNode_t ( ff_tpcallocator * alloc = nullptr ) : tpcId ( -1 ) , deviceId ( -1 ) , my_own_allocator ( false ) , oneshot ( false ) , oneshotTask ( nullptr ) , allocator ( alloc ) { if ( allocator == nullptr ) { my_own_allocator = true ; allocator = new ff_tpcallocator ; assert ( allocator ) ; } }
Constructor used for stream-based computation.
Constructor used for stream - based computation .
// TODO: management of multiple TPC devices