[HIPIFY][#674][hipBLAS-#366][workaround] Introduce an option-driven matcher for Data Types substitution #895
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Synopsis]
hipSPARSE
already uses the common HIP library typehipDataType
, whereashipBLAS
,rocBLAS
, androcSPARSE
don'tcudaDataType
tohipDataType
in some cases (like for SPARSE-related sources), and tohipblasDatatype_t
,rocblas_datatype
, orrocsparse_datatype
in other cases[Solution]
cudaDataType_t
is used for both SPARSE and BLAS--use-hip-data-types
option for usehipDataType
instead ofhipblasDatatype_t
orrocblas_datatype
; switched off by defaultDataTypeSelection
for Data Types substitutioncusparseCreateSpVec
tohipsparseCreateSpVec
hipification, wherehipDataType
is used (the synthetic testcusparse2hipsparse.cu
)[ToDo]
rocBLAS
androcSPARSE
similar to [5.5.X]hipblasDatatype_t
should be replaced with HIP'shipDataType
hipBLAS#366cudaDataType_t
enum members and update the testshipDataType