Fix issues when build with --cupy-no-cuda
@@ -38,31 +38,39 @@ extern "C" {
typedef enum {} cutensorAlgo_t;
typedef enum {} cutensorOperator_t;
typedef enum {} cutensorWorksizePreference_t;
+ typedef enum {} cutensorComputeType_t;
typedef void* cutensorHandle_t;
typedef void* cutensorTensorDescriptor_t;
+ typedef void* cutensorContractionDescriptor_t;
+ typedef void* cutensorContractionFind_t;
+ typedef void* cutensorContractionPlan_t;
- cutensorStatus_t cutensorCreate(...) {
+ cutensorStatus_t cutensorInit(...) {
return CUTENSOR_STATUS_SUCCESS;
}
- cutensorStatus_t cutensorDestroy(...) {
+ cutensorStatus_t cutensorInitTensorDescriptor(...) {
return CUTENSOR_STATUS_SUCCESS;
}
- cutensorStatus_t cutensorCreateTensorDescriptor(...) {
+ cutensorStatus_t cutensorElementwiseTrinary(...) {
return CUTENSOR_STATUS_SUCCESS;
}
- cutensorStatus_t cutensorDestroyTensorDescriptor(...) {
+ cutensorStatus_t cutensorElementwiseBinary(...) {
return CUTENSOR_STATUS_SUCCESS;
}
- cutensorStatus_t cutensorElementwiseTrinary(...) {
+ cutensorStatus_t cutensorInitContractionDescriptor(...) {
return CUTENSOR_STATUS_SUCCESS;
}
- cutensorStatus_t cutensorElementwiseBinary(...) {
+ cutensorStatus_t cutensorInitContractionFind(...) {
+ return CUTENSOR_STATUS_SUCCESS;
+ }
+
+ cutensorStatus_t cutensorInitContractionPlan(...) {
return CUTENSOR_STATUS_SUCCESS;
}
