Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
rocm_bandwidth_test
Commits
b6060afb
"src/vscode:/vscode.git/clone" did not exist on "47b334642261926618078c1e4e043cd0ec21fae7"
Commit
b6060afb
authored
Nov 17, 2017
by
Ramesh Errabolu
Browse files
Update CMakeListst.txt to be build in ROCm repo forest
parent
2e776d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
CMakeLists.txt
CMakeLists.txt
+9
-5
No files found.
CMakeLists.txt
View file @
b6060afb
...
@@ -17,7 +17,11 @@ cmake_minimum_required(VERSION 2.8.0)
...
@@ -17,7 +17,11 @@ cmake_minimum_required(VERSION 2.8.0)
# 3) Enter into folder of build, and run CMAKE to generate makefile
# 3) Enter into folder of build, and run CMAKE to generate makefile
# and make it
# and make it
#
#
# cd build; cmake ..; make
# cd build
# cmake -DROCR_INC_DIR=ROCR_INC_DIR -DROCR_LIB_DIR=$ROCR_LIB_DIR ..
# make
#
# @note: Add -DCMAKE_BUILD_TYPE=Debug if you want to build Debug
#
#
if
(
WIN32
)
if
(
WIN32
)
...
@@ -33,7 +37,7 @@ SET( CMAKE_VERBOSE_MAKEFILE on )
...
@@ -33,7 +37,7 @@ SET( CMAKE_VERBOSE_MAKEFILE on )
#
#
# Determin Roc Runtime header files are accessible
# Determin Roc Runtime header files are accessible
#
#
if
(
NOT EXISTS $
ENV
{ROCR_INC_DIR}/hsa/hsa.h
)
if
(
NOT EXISTS
${
ROCR_INC_DIR
}
/hsa/hsa.h
)
MESSAGE
(
"ERROR: ROC Runtime headers can't be found under specified path"
)
MESSAGE
(
"ERROR: ROC Runtime headers can't be found under specified path"
)
RETURN
()
RETURN
()
endif
()
endif
()
...
@@ -47,7 +51,7 @@ set ( ROC_THUNK_LIBRARY "lib${ROC_THUNK_NAME}" )
...
@@ -47,7 +51,7 @@ set ( ROC_THUNK_LIBRARY "lib${ROC_THUNK_NAME}" )
set
(
CORE_RUNTIME_TARGET
"
${
CORE_RUNTIME_NAME
}
64"
)
set
(
CORE_RUNTIME_TARGET
"
${
CORE_RUNTIME_NAME
}
64"
)
set
(
CORE_RUNTIME_LIBRARY
"lib
${
CORE_RUNTIME_TARGET
}
"
)
set
(
CORE_RUNTIME_LIBRARY
"lib
${
CORE_RUNTIME_TARGET
}
"
)
if
(
NOT EXISTS $
ENV
{ROCR_LIB_DIR}/
${
CORE_RUNTIME_LIBRARY
}
.so
)
if
(
NOT EXISTS
${
ROCR_LIB_DIR
}
/
${
CORE_RUNTIME_LIBRARY
}
.so
)
MESSAGE
(
"ERROR: ROC Runtime libraries can't be found under sprcified path"
)
MESSAGE
(
"ERROR: ROC Runtime libraries can't be found under sprcified path"
)
RETURN
()
RETURN
()
endif
()
endif
()
...
@@ -82,9 +86,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fms-extensions")
...
@@ -82,9 +86,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fms-extensions")
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fmerge-all-constants"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fmerge-all-constants"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fno-threadsafe-statics"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fno-threadsafe-statics"
)
INCLUDE_DIRECTORIES
(
$
ENV
{ROCR_INC_DIR}
)
INCLUDE_DIRECTORIES
(
${
ROCR_INC_DIR
}
)
LINK_DIRECTORIES
(
$
ENV
{ROCR_LIB_DIR}
)
LINK_DIRECTORIES
(
${
ROCR_LIB_DIR
}
)
# Add sources that belong to the project
# Add sources that belong to the project
aux_source_directory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
Src
)
aux_source_directory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
Src
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment