Hello, I’m recently struggling with extracting data from [cudnnBackendDescriptor_t variantPack]. As far as I know, the only way to extract data from cudnnBackendDescriptor_t is to use cudnnBackendGetAttribute API. However, it keeps showing me same error.
void printVariantPackPointers(cudnnBackendDescriptor_t variantPack) {
void* dataPointers[10];
int64_t count = 0;
int64_t requested_count = 10;
void* ptrValue = nullptr;
status = cudnnBackendGetAttribute(
variantPack,
CUDNN_ATTR_VARIANT_PACK_DATA_POINTERS,
CUDNN_TYPE_VOID_PTR,
requested_count,
&count,
ptrValue
);
if (status == CUDNN_STATUS_SUCCESS) {
std::cout << "Attribute (VOID_PTR): " << ptrValue << std::endl;
} else {
std::cout << "Failed to get attribute: " << cudnnGetErrorString(status) << std::endl;
}
}
result : Failed to get attribute: CUDNN_STATUS_NOT_SUPPORTED
I would appreciate if someone fixes my code or point out the problem
I’m currently using CUDNN 8 version