Remove unneeded CMakeList.txt file. Move link and def files.

Change-Id: I219317496aa564bde488a8e56e7d83808ebddb66
This commit is contained in:
James Edwards
2016-09-30 13:02:30 -05:00
parent 41432ee6ca
commit 1b30c322f0
4 changed files with 3 additions and 136 deletions
-133
View File
@@ -1,133 +0,0 @@
################################################################################
##
## The University of Illinois/NCSA
## Open Source License (NCSA)
##
## Copyright (c) 2014-2015, Advanced Micro Devices, Inc. All rights reserved.
##
## Developed by:
##
## AMD Research and AMD HSA Software Development
##
## Advanced Micro Devices, Inc.
##
## www.amd.com
##
## Permission is hereby granted, free of charge, to any person obtaining a copy
## of this software and associated documentation files (the "Software"), to
## deal with the Software without restriction, including without limitation
## the rights to use, copy, modify, merge, publish, distribute, sublicense,
## and#or sell copies of the Software, and to permit persons to whom the
## Software is furnished to do so, subject to the following conditions:
##
## - Redistributions of source code must retain the above copyright notice,
## this list of conditions and the following disclaimers.
## - Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimers in
## the documentation and#or other materials provided with the distribution.
## - Neither the names of Advanced Micro Devices, Inc,
## nor the names of its contributors may be used to endorse or promote
## products derived from this Software without specific prior written
## permission.
##
## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
## IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
## THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
## OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
## ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
## DEALINGS WITH THE SOFTWARE.
##
################################################################################
cmake_minimum_required ( VERSION 2.8.0 )
## GCC 4.8 or higher compiler required.
if ( WIN32 )
MESSAGE ( FATAL_ERROR "Windows build is not supported." )
endif ()
## Verbose output.
set ( CMAKE_VERBOSE_MAKEFILE on )
## Compiler preproc definitions.
add_definitions ( -D__linux__ )
add_definitions ( -DHSA_EXPORT=1 )
add_definitions ( -DHSA_EXPORT_FINALIZER=1 )
add_definitions ( -DHSA_EXPORT_IMAGES=1 )
if ( DEFINED BUILDID )
add_definitions ( -DROCR_BUILD_ID=${BUILDID} )
else ( NOT DEFINED BUILDID )
## get date information based on UTC - full date
execute_process(COMMAND date --utc +%F WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE ROCR_BUILD_TIME OUTPUT_STRIP_TRAILING_WHITESPACE )
## get commit information
execute_process(COMMAND git rev-parse --short HEAD WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE ROCR_BUILD_COMMIT OUTPUT_STRIP_TRAILING_WHITESPACE )
## check dirty tree status
execute_process(COMMAND git diff --shortstat COMMAND wc -l WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE ROCR_DIRTY_TREE OUTPUT_STRIP_TRAILING_WHITESPACE )
set ( BUILD_ID "${ROCR_BUILD_COMMIT}.${ROCR_BUILD_TIME}.${ROCR_DIRTY_TREE}" )
add_definitions ( -DROCR_BUILD_ID=${BUILD_ID} )
endif ()
## ------------------------- Linux Compiler and Linker options -------------------------
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -fexceptions -fno-rtti -fvisibility=hidden -Wno-error=sign-compare -Wno-sign-compare -Wno-write-strings -Wno-conversion-null -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -Wno-error=comment -Wno-comment -Wno-error=pointer-arith -Wno-pointer-arith -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=unused-function" )
set ( DRVDEF "${CMAKE_CURRENT_SOURCE_DIR}/hsacore.so.def" )
set ( LNKSCR "${CMAKE_CURRENT_SOURCE_DIR}/hsacore.so.link" )
set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bdynamic -Wl,-z,noexecstack -Wl,${LNKSCR} -Wl,--version-script=${DRVDEF}" )
set ( CMAKE_SKIP_BUILD_RPATH TRUE )
## ------------------------- End Compiler and Linker options ----------------------------
## Source files.
set ( CORE_SRCS util/lnx/os_linux.cpp )
set ( CORE_SRCS ${CORE_SRCS} util/small_heap.cpp )
set ( CORE_SRCS ${CORE_SRCS} util/timer.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/amd_blit_kernel.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/amd_blit_sdma.cpp )
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_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 )
set ( CORE_SRCS ${CORE_SRCS} runtime/host_queue.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/hsa.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/hsa_api_trace.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/hsa_ext_amd.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/hsa_ext_interface.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/interrupt_signal.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/isa.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/runtime.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/signal.cpp )
set ( CORE_SRCS ${CORE_SRCS} runtime/cache.cpp )
set ( CORE_SRCS ${CORE_SRCS} common/shared.cpp )
set ( CORE_SRCS ${CORE_SRCS} common/hsa_table_interface.cpp )
add_library ( ${CORE_RUNTIME_TARGET} SHARED ${CORE_SRCS} )
## Set the VERSION and SOVERSION values
if ( DEFINED VERSION_STRING )
set_property ( TARGET ${CORE_RUNTIME_TARGET} PROPERTY VERSION "${RUNTIME_VERSION_STRING}" )
endif ()
set_property ( TARGET ${CORE_RUNTIME_TARGET} PROPERTY SOVERSION "${RUNTIME_VERSION_MAJOR}" )
target_link_libraries ( ${CORE_RUNTIME_TARGET}
PRIVATE amdhsaloader
PRIVATE amdhsacode
PRIVATE hsakmt
dl pthread rt
)
## If the build is Release, strip the target library
if ( "${CMAKE_BUILD_TYPE}" STREQUAL Release )
add_custom_command ( TARGET ${CORE_RUNTIME_TARGET} POST_BUILD COMMAND ${CMAKE_STRIP} *.so )
endif ()
install ( TARGETS ${CORE_RUNTIME_TARGET} LIBRARY DESTINATION lib COMPONENT ${CORE_RUNTIME_COMPONENT} )
-208
View File
@@ -1,208 +0,0 @@
{
global:
hsa_init;
hsa_shut_down;
hsa_system_get_info;
hsa_extension_get_name;
hsa_system_extension_supported;
hsa_system_major_extension_supported;
hsa_system_get_extension_table;
hsa_system_get_major_extension_table;
hsa_iterate_agents;
hsa_agent_get_info;
hsa_agent_get_exception_policies;
hsa_cache_get_info;
hsa_agent_iterate_caches;
hsa_agent_extension_supported;
hsa_agent_major_extension_supported;
hsa_queue_create;
hsa_soft_queue_create;
hsa_queue_destroy;
hsa_queue_inactivate;
hsa_queue_load_read_index_scacquire;
hsa_queue_load_read_index_acquire;
hsa_queue_load_read_index_relaxed;
hsa_queue_load_write_index_scacquire;
hsa_queue_load_write_index_acquire;
hsa_queue_load_write_index_relaxed;
hsa_queue_store_write_index_relaxed;
hsa_queue_store_write_index_screlease;
hsa_queue_store_write_index_release;
hsa_queue_cas_write_index_scacq_screl;
hsa_queue_cas_write_index_acq_rel;
hsa_queue_cas_write_index_scacquire;
hsa_queue_cas_write_index_acquire;
hsa_queue_cas_write_index_relaxed;
hsa_queue_cas_write_index_screlease;
hsa_queue_cas_write_index_release;
hsa_queue_add_write_index_scacq_screl;
hsa_queue_add_write_index_acq_rel;
hsa_queue_add_write_index_scacquire;
hsa_queue_add_write_index_acquire;
hsa_queue_add_write_index_relaxed;
hsa_queue_add_write_index_screlease;
hsa_queue_add_write_index_release;
hsa_queue_store_read_index_relaxed;
hsa_queue_store_read_index_screlease;
hsa_queue_store_read_index_release;
hsa_agent_iterate_regions;
hsa_region_get_info;
hsa_memory_register;
hsa_memory_deregister;
hsa_memory_allocate;
hsa_memory_free;
hsa_memory_copy;
hsa_memory_assign_agent;
hsa_signal_create;
hsa_signal_destroy;
hsa_signal_load_relaxed;
hsa_signal_load_scacquire;
hsa_signal_load_acquire;
hsa_signal_store_relaxed;
hsa_signal_store_screlease;
hsa_signal_store_release;
hsa_signal_silent_store_relaxed;
hsa_signal_silent_store_screlease;
hsa_signal_wait_relaxed;
hsa_signal_wait_scacquire;
hsa_signal_wait_acquire;
hsa_signal_group_create;
hsa_signal_group_destroy;
hsa_signal_group_wait_any_scacquire;
hsa_signal_group_wait_any_relaxed;
hsa_signal_and_relaxed;
hsa_signal_and_scacquire;
hsa_signal_and_acquire;
hsa_signal_and_screlease;
hsa_signal_and_release;
hsa_signal_and_scacq_screl;
hsa_signal_and_acq_rel;
hsa_signal_or_relaxed;
hsa_signal_or_scacquire;
hsa_signal_or_acquire;
hsa_signal_or_screlease;
hsa_signal_or_release;
hsa_signal_or_scacq_screl;
hsa_signal_or_acq_rel;
hsa_signal_xor_relaxed;
hsa_signal_xor_scacquire;
hsa_signal_xor_acquire;
hsa_signal_xor_screlease;
hsa_signal_xor_release;
hsa_signal_xor_scacq_screl;
hsa_signal_xor_acq_rel;
hsa_signal_exchange_relaxed;
hsa_signal_exchange_scacquire;
hsa_signal_exchange_acquire;
hsa_signal_exchange_screlease;
hsa_signal_exchange_release;
hsa_signal_exchange_scacq_screl;
hsa_signal_exchange_acq_rel;
hsa_signal_add_relaxed;
hsa_signal_add_scacquire;
hsa_signal_add_acquire;
hsa_signal_add_screlease;
hsa_signal_add_release;
hsa_signal_add_scacq_screl;
hsa_signal_add_acq_rel;
hsa_signal_subtract_relaxed;
hsa_signal_subtract_scacquire;
hsa_signal_subtract_acquire;
hsa_signal_subtract_screlease;
hsa_signal_subtract_release;
hsa_signal_subtract_scacq_screl;
hsa_signal_subtract_acq_rel;
hsa_signal_cas_relaxed;
hsa_signal_cas_scacquire;
hsa_signal_cas_acquire;
hsa_signal_cas_screlease;
hsa_signal_cas_release;
hsa_signal_cas_scacq_screl;
hsa_signal_cas_acq_rel;
hsa_isa_from_name;
hsa_agent_iterate_isas;
hsa_isa_get_info;
hsa_isa_get_info_alt;
hsa_isa_get_exception_policies;
hsa_isa_get_round_method;
hsa_wavefront_get_info;
hsa_isa_iterate_wavefronts;
hsa_isa_compatible;
hsa_code_object_serialize;
hsa_code_object_deserialize;
hsa_code_object_destroy;
hsa_code_object_get_info;
hsa_code_object_get_symbol;
hsa_code_object_get_symbol_from_name;
hsa_code_symbol_get_info;
hsa_code_object_iterate_symbols;
hsa_code_object_reader_create_from_file;
hsa_code_object_reader_create_from_memory;
hsa_code_object_reader_destroy;
hsa_executable_create;
hsa_executable_create_alt;
hsa_executable_destroy;
hsa_executable_load_code_object;
hsa_executable_load_program_code_object;
hsa_executable_load_agent_code_object;
hsa_executable_freeze;
hsa_executable_get_info;
hsa_executable_global_variable_define;
hsa_executable_agent_global_variable_define;
hsa_executable_readonly_variable_define;
hsa_executable_validate;
hsa_executable_validate_alt;
hsa_executable_get_symbol;
hsa_executable_get_symbol_by_name;
hsa_executable_symbol_get_info;
hsa_executable_iterate_symbols;
hsa_executable_iterate_agent_symbols;
hsa_executable_iterate_program_symbols;
hsa_status_string;
hsa_ext_program_create;
hsa_ext_program_destroy;
hsa_ext_program_add_module;
hsa_ext_program_iterate_modules;
hsa_ext_program_get_info;
hsa_ext_program_finalize;
hsa_amd_coherency_get_type;
hsa_amd_coherency_set_type;
hsa_amd_profiling_set_profiler_enabled;
hsa_amd_profiling_get_dispatch_time;
hsa_amd_profiling_async_copy_enable;
hsa_amd_profiling_get_async_copy_time;
hsa_amd_profiling_convert_tick_to_system_domain;
hsa_amd_signal_wait_any;
hsa_amd_signal_async_handler;
hsa_amd_async_function;
hsa_amd_image_get_info_max_dim;
hsa_amd_queue_cu_set_mask;
hsa_amd_memory_fill;
hsa_amd_memory_async_copy;
hsa_amd_memory_lock;
hsa_amd_memory_unlock;
hsa_amd_agent_iterate_memory_pools;
hsa_amd_agent_memory_pool_get_info;
hsa_amd_agents_allow_access;
hsa_amd_memory_pool_get_info;
hsa_amd_memory_pool_allocate;
hsa_amd_memory_pool_free;
hsa_amd_memory_pool_can_migrate;
hsa_amd_memory_migrate;
hsa_amd_interop_map_buffer;
hsa_amd_interop_unmap_buffer;
hsa_amd_image_create;
hsa_ext_image_get_capability;
hsa_ext_image_data_get_info;
hsa_ext_image_create;
hsa_ext_image_import;
hsa_ext_image_export;
hsa_ext_image_copy;
hsa_ext_image_clear;
hsa_ext_image_destroy;
hsa_ext_sampler_create;
hsa_ext_sampler_destroy;
local:
*;
};
-34
View File
@@ -1,34 +0,0 @@
hsa_queue_load_read_index_acquire = hsa_queue_load_read_index_scacquire;
hsa_queue_load_write_index_acquire = hsa_queue_load_write_index_scacquire;
hsa_queue_store_write_index_release = hsa_queue_store_write_index_screlease;
hsa_queue_cas_write_index_acq_rel = hsa_queue_cas_write_index_scacq_screl;
hsa_queue_cas_write_index_acquire = hsa_queue_cas_write_index_scacquire;
hsa_queue_cas_write_index_release = hsa_queue_cas_write_index_screlease;
hsa_queue_add_write_index_acq_rel = hsa_queue_add_write_index_scacq_screl;
hsa_queue_add_write_index_acquire = hsa_queue_add_write_index_scacquire;
hsa_queue_add_write_index_release = hsa_queue_add_write_index_screlease;
hsa_queue_store_read_index_release = hsa_queue_store_read_index_screlease;
hsa_signal_load_acquire = hsa_signal_load_scacquire;
hsa_signal_store_release = hsa_signal_store_screlease;
hsa_signal_wait_acquire = hsa_signal_wait_scacquire;
hsa_signal_and_acquire = hsa_signal_and_scacquire;
hsa_signal_and_release = hsa_signal_and_screlease;
hsa_signal_and_acq_rel = hsa_signal_and_scacq_screl;
hsa_signal_or_acquire = hsa_signal_or_scacquire;
hsa_signal_or_release = hsa_signal_or_screlease;
hsa_signal_or_acq_rel = hsa_signal_or_scacq_screl;
hsa_signal_xor_acquire = hsa_signal_xor_scacquire;
hsa_signal_xor_release = hsa_signal_xor_screlease;
hsa_signal_xor_acq_rel = hsa_signal_xor_scacq_screl;
hsa_signal_exchange_acquire = hsa_signal_exchange_scacquire;
hsa_signal_exchange_release = hsa_signal_exchange_screlease;
hsa_signal_exchange_acq_rel = hsa_signal_exchange_scacq_screl;
hsa_signal_add_acquire = hsa_signal_add_scacquire;
hsa_signal_add_release = hsa_signal_add_screlease;
hsa_signal_add_acq_rel = hsa_signal_add_scacq_screl;
hsa_signal_subtract_acquire = hsa_signal_subtract_scacquire;
hsa_signal_subtract_release = hsa_signal_subtract_screlease;
hsa_signal_subtract_acq_rel = hsa_signal_subtract_scacq_screl;
hsa_signal_cas_acquire = hsa_signal_cas_scacquire;
hsa_signal_cas_release = hsa_signal_cas_screlease;
hsa_signal_cas_acq_rel = hsa_signal_cas_scacq_screl;