Files
rocm-systems/rocclr/device/rocm/CMakeLists.txt
T
Sameer Sahasrabuddhe ce4a34bc71 SWDEV-204784 - implement printf based on hostcall
The printf call in the device code is expanded by the compiler into a
series of hostcalls that together form a "message". This change
introduces the following functionality in the runtime:
1. Receive a generic message consisting of a series of hostcalls.
2. Process a printf message.

Change-Id: I9d667d6f91607a907a96e46cc5fca55734339747
2020-03-08 23:57:03 -04:00

29 rindas
698 B
CMake

include_directories(${CMAKE_SOURCE_DIR}/compiler/lib/loaders/elf/utils/common)
include_directories(${CMAKE_SOURCE_DIR}/compiler/lib/loaders/elf/utils/libelf)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${ROCM_OCL_INCLUDES})
if(${USE_COMGR_LIBRARY} MATCHES "yes")
add_definitions(-DUSE_COMGR_LIBRARY)
endif()
add_library(oclrocm OBJECT
roccounters.cpp
rocprintf.cpp
rocprogram.cpp
rocmemory.cpp
rocdevice.cpp
rocblit.cpp
rockernel.cpp
rocvirtual.cpp
rocglinterop.cpp
rocappprofile.cpp
rocsettings.cpp
rocschedcl.cpp
rochcmessages.cpp
rochcprintf.cpp
rochostcall.cpp
)
set_target_properties(oclrocm PROPERTIES POSITION_INDEPENDENT_CODE ON)