Skip to content

Commit

Permalink
Hotfix for asan build with flang (#619)
Browse files Browse the repository at this point in the history
Fixes no-solver fortran client build by ensuring hipblas_interface module is in single fortran file.
  • Loading branch information
daineAMD authored Jul 5, 2023
1 parent bb3e793 commit c385c0e
Show file tree
Hide file tree
Showing 6 changed files with 14,160 additions and 14,113 deletions.
11 changes: 6 additions & 5 deletions clients/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,21 @@ list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake )
include( build-options )

if( NOT WIN32 )
set(hipblas_f90_source_clients
include/hipblas_fortran.f90
set(hipblas_f90_source_clients_no_solver
include/hipblas_fortran_no_solver_module.f90
)

set(hipblas_f90_source_clients_solver
include/hipblas_fortran_solver.f90)
include/hipblas_fortran_module.f90
)
endif()

if( BUILD_CLIENTS_TESTS OR BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_SAMPLES )
if( NOT WIN32 )
if( BUILD_WITH_SOLVER )
add_library(hipblas_fortran_client STATIC ${hipblas_f90_source_clients} ${hipblas_f90_source_clients_solver})
add_library(hipblas_fortran_client STATIC ${hipblas_f90_source_clients_solver})
else()
add_library(hipblas_fortran_client STATIC ${hipblas_f90_source_clients})
add_library(hipblas_fortran_client STATIC ${hipblas_f90_source_clients_no_solver})
endif()
add_dependencies(hipblas_fortran_client hipblas_fortran)
endif()
Expand Down
Loading

0 comments on commit c385c0e

Please sign in to comment.