Skip to content

Commit

Permalink
Change package dependency to hip-rocclr for hip-clang (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
amdkila authored Jul 9, 2020
1 parent a052243 commit f0f1d78
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions rocsolver/library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,22 @@ add_subdirectory( src )
# endif( )

# Package specific CPACK vars
if( NOT CXX_VERSION_STRING MATCHES "clang" )
set( CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-dev (>= 2.5.27)" )
set( CPACK_RPM_PACKAGE_REQUIRES "rocm-dev >= 2.5.27" )
if( HIP_RUNTIME STREQUAL "ROCclr")
set( RPM_REQUIREMENTS "hip-rocclr >= 3.5.0" )
set( CPACK_DEBIAN_PACKAGE_DEPENDS "hip-rocclr >= 3.5.0" )
elseif( HIP_RUNTIME STREQUAL "cuda")
set( RPM_REQUIREMENTS "hip-nvcc >= 3.5.0" )
set( CPACK_DEBIAN_PACKAGE_DEPENDS "hip-nvcc >= 3.5.0" )
else()
set( RPM_REQUIREMENTS "rocm-dev >= 2.5.27" )
set( CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-dev >= 2.5.27" )
endif()

if( OS_ID_sles )
set( RPM_REQUIREMENTS "${RPM_REQUIREMENTS}, libLLVM7 >= 7.0.1")
endif()
set( CPACK_RPM_PACKAGE_REQUIRES ${RPM_REQUIREMENTS} )

set( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/../../LICENSE.md" )

if( NOT CPACK_PACKAGING_INSTALL_PREFIX )
Expand Down

0 comments on commit f0f1d78

Please sign in to comment.