diff --git a/CMakeLists.txt b/CMakeLists.txt index b490876a7d9587e0713aab1d0ca9d2e654767636..79dc06338d37daee4ef879d6d46cf566981c43ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,8 @@ set(BUDDY_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(BUDDY_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/bin) set(BUDDY_EXAMPLES_DIR ${BUDDY_SOURCE_DIR}/examples) set(BUDDY_INCLUDE_DIR ${BUDDY_SOURCE_DIR}/include) +set(BUDDY_OPT_ATTR avx512f CACHE STRING "Target Architecture.") +message(STATUS "Configuring Target Architecture: ${BUDDY_OPT_ATTR}") set(BUILD_TESTS OFF CACHE BOOL "Build tests") diff --git a/benchmarks/DeepLearning/Models/MobileNet-V2/CMakeLists.txt b/benchmarks/DeepLearning/Models/MobileNet-V2/CMakeLists.txt index cc005d8f40a3de51ae29fb657ca497cd3f6e7661..fe40625be2523d1a5f7bad0dc3cb7bad5172f89c 100644 --- a/benchmarks/DeepLearning/Models/MobileNet-V2/CMakeLists.txt +++ b/benchmarks/DeepLearning/Models/MobileNet-V2/CMakeLists.txt @@ -1,4 +1,3 @@ -set(BUDDY_OPT_ATTR avx512f) set(LLVM_MLIR_BINARY_DIR ${BUDDY_OPT_BUILD_DIR}/../llvm/build/bin) add_custom_command(OUTPUT mobilenet-default.o diff --git a/benchmarks/DeepLearning/Ops/Conv2DNchwFchwOp/CMakeLists.txt b/benchmarks/DeepLearning/Ops/Conv2DNchwFchwOp/CMakeLists.txt index ec4d99358e3ea1149fc0c6eeddca887317dbe981..5d1393f0135ef765f11ce042967fd9d66d01c1c2 100644 --- a/benchmarks/DeepLearning/Ops/Conv2DNchwFchwOp/CMakeLists.txt +++ b/benchmarks/DeepLearning/Ops/Conv2DNchwFchwOp/CMakeLists.txt @@ -1,4 +1,3 @@ -set(BUDDY_OPT_ATTR avx512f) set(LLVM_MLIR_BINARY_DIR ${BUDDY_OPT_BUILD_DIR}/../llvm/build/bin) add_custom_command(OUTPUT conv-2d-nchw-fchw.o diff --git a/benchmarks/DeepLearning/Ops/Conv2DNhwcHwcfOp/CMakeLists.txt b/benchmarks/DeepLearning/Ops/Conv2DNhwcHwcfOp/CMakeLists.txt index fa3e5b88beddd2f6d798257e28ad29b190e1665f..d7c5686234ec8d644a892214e44b1f73a12e1dbb 100644 --- a/benchmarks/DeepLearning/Ops/Conv2DNhwcHwcfOp/CMakeLists.txt +++ b/benchmarks/DeepLearning/Ops/Conv2DNhwcHwcfOp/CMakeLists.txt @@ -1,4 +1,3 @@ -set(BUDDY_OPT_ATTR avx512f) set(LLVM_MLIR_BINARY_DIR ${BUDDY_OPT_BUILD_DIR}/../llvm/build/bin) add_custom_command(OUTPUT conv-2d-nhwc-hwcf.o diff --git a/benchmarks/DeepLearning/Ops/DepthwiseConv2DNhwcHwcOp/CMakeLists.txt b/benchmarks/DeepLearning/Ops/DepthwiseConv2DNhwcHwcOp/CMakeLists.txt index de2b582be58f997fe075de62a66aead7d0361fdf..2a7fa063d67a1bf253d894ca2eb3fcb93efaa216 100644 --- a/benchmarks/DeepLearning/Ops/DepthwiseConv2DNhwcHwcOp/CMakeLists.txt +++ b/benchmarks/DeepLearning/Ops/DepthwiseConv2DNhwcHwcOp/CMakeLists.txt @@ -1,4 +1,3 @@ -set(BUDDY_OPT_ATTR avx512f) set(LLVM_MLIR_BINARY_DIR ${BUDDY_OPT_BUILD_DIR}/../llvm/build/bin) add_custom_command(OUTPUT depthwise-conv-2d-nhwc-hwc.o diff --git a/benchmarks/ImageProcessing/CMakeLists.txt b/benchmarks/ImageProcessing/CMakeLists.txt index 1cef145d68d6a5ba78466b1a59dd0ef95296cf7a..ccd0d033c171a29d1508bc69519407642d0eb358 100644 --- a/benchmarks/ImageProcessing/CMakeLists.txt +++ b/benchmarks/ImageProcessing/CMakeLists.txt @@ -1,9 +1,7 @@ set(BUDDY_OPT_STRIP_MINING 256 CACHE STRING "Stride Size") -set(BUDDY_OPT_ATTR avx512f CACHE STRING "Taget Architecture") set(LLVM_MLIR_BINARY_DIR ${BUDDY_OPT_BUILD_DIR}/../llvm/build/bin) message(STATUS "Configuring Stride Size: ${BUDDY_OPT_STRIP_MINING}") -message(STATUS "Configuring Taget Architecture: ${BUDDY_OPT_ATTR}") #------------------------------------------------------------------------------- # MLIR Linalg Dialect Conv2D Operation + CB Algorithm