minor changes
This commit is contained in:
parent
ae31f37135
commit
9036263552
@ -21,11 +21,11 @@ hypre_DeviceDataCreate()
|
||||
hypre_DeviceData *data = hypre_CTAlloc(hypre_DeviceData, 1, HYPRE_MEMORY_HOST);
|
||||
|
||||
#if defined(HYPRE_USING_SYCL)
|
||||
hypre_DeviceDataDevice(data) = nullptr;
|
||||
hypre_DeviceDataDevice(data) = nullptr;
|
||||
#else
|
||||
hypre_DeviceDataDevice(data) = 0;
|
||||
hypre_DeviceDataDevice(data) = 0;
|
||||
#endif
|
||||
hypre_DeviceDataComputeStreamNum(data) = 0;
|
||||
hypre_DeviceDataComputeStreamNum(data) = 0;
|
||||
|
||||
/* SpMV, SpGeMM, SpTrans: use vendor's lib by default */
|
||||
#if defined(HYPRE_USING_CUSPARSE) || defined(HYPRE_USING_ROCSPARSE) || defined(HYPRE_USING_ONEMKLSPARSE)
|
||||
@ -33,7 +33,7 @@ hypre_DeviceDataCreate()
|
||||
hypre_DeviceDataSpMVUseVendor(data) = 1;
|
||||
hypre_DeviceDataSpTransUseVendor(data) = 1;
|
||||
#else
|
||||
hypre_DeviceDataSpgemmUseVendor(data) = 0;
|
||||
hypre_DeviceDataSpgemmUseVendor(data) = 0;
|
||||
#endif
|
||||
/* for CUDA, it seems cusparse is slow due to memory allocation inside the transposition */
|
||||
#if defined(HYPRE_USING_CUDA)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user