-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We don't currently have any infrastructure for copying the openmp runtime to the device as part of the test. Keep using the static openmp like we used to. For ndk-build, we should be copying the runtime library to the install directory if appropriate. For CMake, the install directory is not used. We have this same problem with ASan, so if we decide that CMake should do anything about that we can handle openmp the same way. Test: ./run_tests.py --rebuild --filter openmp Bug: android/ndk#1028 Change-Id: Id41455c7dad1117aeae4587a2bc1b9601d55e472
- Loading branch information
Showing
3 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.6.0) | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp") | ||
set(CMAKE_EXECUTABLE_LINKER_FLAGS "${CMAKE_EXECUTABLE_LINKER_FLAGS} -fopenmp") | ||
|
||
add_executable(openmp jni/openmp.c) | ||
set_target_properties(openmp PROPERTIES COMPILE_OPTIONS -fopenmp) | ||
target_link_libraries(openmp -Wl,-Bstatic -lomp -Wl,-Bdynamic) | ||
|
||
add_executable(openmp2 jni/openmp2.c) | ||
set_target_properties(openmp2 PROPERTIES COMPILE_OPTIONS -fopenmp) | ||
target_link_libraries(openmp2 -Wl,-Bstatic -lomp -Wl,-Bdynamic) | ||
|
||
add_executable(fib jni/fib.c) | ||
set_target_properties(fib PROPERTIES COMPILE_OPTIONS -fopenmp) | ||
target_link_libraries(fib -Wl,-Bstatic -lomp -Wl,-Bdynamic) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters