Change all device operations to use add_instance_library (#338)

* Change all device operations to use add_instance_library to avoid duplicated cmake configuration.

* update DeviceMem

Co-authored-by: Chao Liu <chao.liu2@amd.com>

[ROCm/composable_kernel commit: fb1cbf025b]
This commit is contained in:
cloudhan
2022-08-14 01:17:58 +08:00
committed by GitHub
parent d15689b96a
commit f1a2efceb5
31 changed files with 190 additions and 358 deletions

View File

@@ -1,10 +1,3 @@
set(DEVICE_ELEMENTWISE_INSTANCE_SOURCE
add_instance_library(device_elementwise_instance
device_normalize_instance.cpp
)
add_instance_library(device_elementwise_instance ${DEVICE_ELEMENTWISE_INSTANCE_SOURCE})
target_compile_features(device_elementwise_instance PUBLIC)
set_target_properties(device_elementwise_instance PROPERTIES POSITION_INDEPENDENT_CODE ON)
clang_tidy_check(device_elementwise_instance)