@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake rocm-cmake ] ;
buildInputs = [ clang rocm-comgr rocm-runtime rocm-thunk clang ] ;
buildInputs = [ clang rocm-comgr rocm-runtime rocm-thunk ] ;
propagatedBuildInputs = [ libelf libglvnd libX11 ] ;
@ -34,7 +34,8 @@ stdenv.mkDerivation rec {
- - replace ' set ( ROCCLR_EXPORTS_FILE " ' ' ${ CMAKE_CURRENT_BINARY_DIR } / a m d r o c c l r _ s t a t i c T a r g e t s . c m a k e " ) ' \
' set ( ROCCLR_EXPORTS_FILE " ' ' ${ CMAKE_INSTALL_LIBDIR } / c m a k e / a m d r o c c l r _ s t a t i c T a r g e t s . c m a k e " ) ' \
- - replace ' set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY '' ${ CMAKE_CURRENT_BINARY_DIR } / l i b ) ' \
' set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY '' ${ CMAKE_INSTALL_LIBDIR } ) '
' set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY '' ${ CMAKE_INSTALL_LIBDIR } ) ' \
- - replace ' find_library ( OpenCL REQUIRED' ' find_library ( OpenCL'
substituteInPlace device/comgrctx.cpp \
- - replace " l i b a m d _ c o m g r . s o " " ${ rocm-comgr } / l i b / l i b a m d _ c o m g r . s o "
'' ;