operator.cc 407 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12

#include "infiniop/operator.h"

infiniopStatus_t infiniopGetDescriptorDeviceType(InfiniopDescriptor const *desc_ptr, infiniDevice_t *device_type) {
    *device_type = desc_ptr->device_type;
    return INFINIOP_STATUS_SUCCESS;
}

infiniopStatus_t infiniopGetDescriptorDeviceId(InfiniopDescriptor const *desc_ptr, int *device_id) {
    *device_id = desc_ptr->device_id;
    return INFINIOP_STATUS_SUCCESS;
}