# PetscHipBLASIntCast
like `PetscBLASIntCast()`, but for `PetscHipBLASInt`. 
## Synopsis
```
static inline PetscErrorCode PetscHipBLASIntCast(PetscInt a, PetscHipBLASInt *b)
```
Not Collective


## Input Parameter

- ***a -*** the `PetscInt` value



## Output Parameter

- ***b -*** the resulting `PetscHipBLASInt` value





## Notes
Errors if the integer is negative since PETSc calls to hipBLAS and friends never need to cast negative integer inputs


## See Also
 `PetscHipBLASInt`, `PetscBLASInt`, `PetscMPIInt`, `PetscInt`, `PetscBLASIntCast()`, `PetscMPIIntCast()`, `PetscIntCast()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscsys.h.html#PetscHipBLASIntCast">include/petscsys.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscsys.h)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
