pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: BLAS: Does cblas interface work with BLAS types other than netlib



On Sun, Sep 25, 2022 at 05:10:42PM +0530, Mayuresh wrote:
> > The other BLAS build should include cblas wrappers.
> 
> Ok. Will take a closer look.

Yes, indeed those are there, were just masked. Please confirm if the
following patch is required:

    diff --git a/mk/blas.buildlink3.mk b/mk/blas.buildlink3.mk
    index 87cd4ba00..bfca59c7b 100644
    --- a/mk/blas.buildlink3.mk
    +++ b/mk/blas.buildlink3.mk
    @@ -156,7 +156,7 @@ BLAS_LIBS=  -lopenblas${_BLAS_64}_pthread
     LAPACK_LIBS=   ${BLAS_LIBS}
     CBLAS_LIBS=    ${BLAS_LIBS}
     LAPACKE_LIBS=  ${BLAS_LIBS}
    -BLAS_INCLUDES= -I${PREFIX}/include/openblas64_pthread
    +BLAS_INCLUDES= -I${PREFIX}/include/openblas${_BLAS_64}_pthread
     BLAS_PC=       openblas${_BLAS_64}_pthread
     LAPACK_PC=     ${BLAS_PC}
     CBLAS_PC=      ${BLAS_PC}


I am able to build dlib-cpp with this change.

-- 
Mayuresh


Home | Main Index | Thread Index | Old Index