{"record":{"id":"1e40933d24804acc","repo":"vosen/ZLUDA","slug":"rocblas-dll-could-not-be-found-please-install-hip","errorCode":null,"errorMessage":"rocblas.dll could not be found. Please install HIP SDK: https://zluda.readthedocs.io/latest/hip_sdk.html","messagePattern":"rocblas\\.dll could not be found\\. Please install HIP SDK: https://zluda\\.readthedocs\\.io/latest/hip_sdk\\.html","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zluda_blas/src/impl.rs","lineNumber":111,"sourceCode":"\npub(crate) fn get_status_name(status: cublasStatus_t) -> *const ::core::ffi::c_char {\n    match status {\n        cublasStatus_t::SUCCESS => c\"CUBLAS_STATUS_SUCCESS\".as_ptr(),\n        cublasStatus_t::ERROR_NOT_INITIALIZED => c\"CUBLAS_STATUS_NOT_INITIALIZED\".as_ptr(),\n        cublasStatus_t::ERROR_ALLOC_FAILED => c\"CUBLAS_STATUS_ALLOC_FAILED\".as_ptr(),\n        cublasStatus_t::ERROR_INVALID_VALUE => c\"CUBLAS_STATUS_INVALID_VALUE\".as_ptr(),\n        cublasStatus_t::ERROR_ARCH_MISMATCH => c\"CUBLAS_STATUS_ARCH_MISMATCH\".as_ptr(),\n        cublasStatus_t::ERROR_MAPPING_ERROR => c\"CUBLAS_STATUS_MAPPING_ERROR\".as_ptr(),\n        cublasStatus_t::ERROR_EXECUTION_FAILED => c\"CUBLAS_STATUS_EXECUTION_FAILED\".as_ptr(),\n        cublasStatus_t::ERROR_INTERNAL_ERROR => c\"CUBLAS_STATUS_INTERNAL_ERROR\".as_ptr(),\n        cublasStatus_t::ERROR_NOT_SUPPORTED => c\"CUBLAS_STATUS_NOT_SUPPORTED\".as_ptr(),\n        cublasStatus_t::ERROR_LICENSE_ERROR => c\"CUBLAS_STATUS_LICENSE_ERROR\".as_ptr(),\n        _ => c\"CUBLAS_STATUS_UNKNOWN\".as_ptr(),\n    }\n}\n\npub(crate) fn get_status_string(status: cublasStatus_t) -> *const ::core::ffi::c_char {\n    if cfg!(windows) && status.is_err() && status.err() == rocblas().err().map(Into::into) {\n        return c\"rocblas.dll could not be found. Please install HIP SDK: https://zluda.readthedocs.io/latest/hip_sdk.html\".as_ptr();\n    }\n    get_status_name(status)\n}\n\npub(crate) fn xerbla(_sr_name: *const ::core::ffi::c_char, _info: ::core::ffi::c_int) -> () {\n    todo!()\n}\n\npub(crate) fn get_cudart_version() -> usize {\n    todo!()\n}\n\npub(crate) fn set_math_mode(handle: &Handle, mode: rocblas_math_mode) -> cublasStatus_t {\n    unsafe { rocblas()?.rocblas_set_math_mode(handle.rocm_handle, mode) }?;\n    Ok(())\n}\n","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/vosen/ZLUDA/blob/9c8b43f242985150f86a7f485218b7b82c3e96ca/zluda_blas/src/impl.rs#L93-L129","documentation":"Panic in zluda_blas: neither rocblas.dll nor an alternative could be loaded, so the cuBLAS emulation layer has nothing to forward calls to. ZLUDA's BLAS support delegates to AMD's rocBLAS from the HIP SDK; without it installed on the system, any cuBLAS-using application aborts at first use.","triggerScenarios":"Thrown at zluda_blas/src/impl.rs:111 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install the AMD HIP SDK (https://zluda.readthedocs.io/latest/hip_sdk.html) which ships rocblas.dll","Verify rocblas.dll is on PATH or next to the application","If BLAS is not needed, avoid cuBLAS calls in the application"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9c8b43f242985150f86a7f485218b7b82c3e96ca","analyzedAt":"2026-09-06T09:21:08.049Z","contentChangedAt":"2026-09-06T09:21:08.049Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}