Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# ==================================================================================================
# This file is part of the CodeVault project. The project is licensed under Apache Version 2.0.
# CodeVault is part of the EU-project PRACE-4IP (WP7.3.C).
#
# Author(s):
# Valeriu Codreanu <valeriu.codreanu@surfsara.nl>
#
# ==================================================================================================
cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR)
set(CMAKE_VERBOSE_MAKEFILE ON)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../../../cmake/common.cmake)
# ==================================================================================================
if ("${DWARF_PREFIX}" STREQUAL "")
set(DWARF_PREFIX 2_sparse)
endif()
set(NAME ${DWARF_PREFIX}_spgemm_mkl_shmem)
# ==================================================================================================
# C++ compiler settings
find_package(Common)
SET(ICC_MKL_LINK_FLAGS "-mkl")
SET( CMAKE_EXE_LINKER_FLAGS "${ICC_MKL_LINK_FLAGS}" )
add_executable(${NAME} mklspgemm.c mmio.c)
install(TARGETS ${NAME} DESTINATION bin)
# ==================================================================================================
unset(NAME)
# ==================================================================================================