Skip to content

Commit

Permalink
ROCR 1.2 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards-AMD committed Aug 14, 2016
1 parent 99719a4 commit a604774
Show file tree
Hide file tree
Showing 48 changed files with 3,680 additions and 2,140 deletions.
12 changes: 0 additions & 12 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,6 @@ For example, from the top level ROCR repository execute:

The name of the core hsa runtime is libhsa-runtime64.so.1.

#### External requirements

The core runtime requires the sp3.a library to be able to compiler
on x86_64 architechtures. The binaries for the sp3.a librariy can
be found on the amd-codexl-analyzer GitHub repository:

https://github.com/GPUOpen-Tools/amd-codexl-analyzer

The x86_64 library and associated header files have been added to
this code base for convenience, but are still subject to the
AMD copyright license.

#### Specs

http://www.hsafoundation.com/standards/
Expand Down
17 changes: 1 addition & 16 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,6 @@ if ( NOT EXISTS ${HSATHK_BUILD_LIB_PATH}/libhsakmt.so.1 )
MESSAGE ( FATAL_ERROR "Environment variable HSATHK_BUILD_LIB_PATH is not set to point to the location where KFD Thunk library libhsakmt.so.1 could be found." )
endif ()

if ( EXISTS ${LIBSP3_BUILD_INC_PATH}/sp3.h )
set ( LIBSP3_BUILD_INC_PATH ${LIBSP3_BUILD_INC_PATH} )
else ()
set ( LIBSP3_BUILD_INC_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../utils/sp3 )
endif ()

if ( EXISTS ${LIBSP3_BUILD_LIB_PATH}/libsp3.a )
set ( LIBSP3_BUILD_LIB_PATH ${LIBSP3_BUILD_LIB_PATH} )
else ()
set ( LIBSP3_BUILD_LIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../utils/sp3 )
endif ()

MESSAGE ( ------IS64BIT: ${IS64BIT} )
MESSAGE ( ------Compiler: ${CMAKE_CXX_COMPILER} )
MESSAGE ( ------Version: ${CMAKE_CXX_COMPILER_VERSION} )
Expand Down Expand Up @@ -132,7 +120,7 @@ set ( CORE_SRCS ${CORE_SRCS} runtime/amd_cpu_agent.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/amd_gpu_agent.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/amd_aql_queue.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/amd_loader_context.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/hsa_ven_amd_loaded_code_object.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/hsa_ven_amd_loader.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/amd_memory_region.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/amd_topology.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/default_signal.cpp )
Expand All @@ -153,11 +141,9 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/../inc )
include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/inc )
include_directories ( ${HSATHK_BUILD_INC_PATH} )
include_directories ( ${LIBSP3_BUILD_INC_PATH} )

## Library path(s).
link_directories ( ${HSATHK_BUILD_LIB_PATH} )
link_directories ( ${LIBSP3_BUILD_LIB_PATH} )

add_library ( ${CORE_RUNTIME_TARGET} SHARED ${CORE_SRCS} )

Expand All @@ -172,7 +158,6 @@ target_link_libraries ( ${CORE_RUNTIME_TARGET}
PRIVATE amdhsaloader
PRIVATE amdhsacode
PRIVATE hsakmt
PRIVATE sp3
dl pthread rt
)

Expand Down
Loading

0 comments on commit a604774

Please sign in to comment.