diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2d5f30616453f2a88e9e7b10acfda7b464b1c2c5..11230843810f76f860204bc525c6a0454bb6974d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -4,4 +4,4 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") add_executable(hello hello.c) add_executable(hello-task hello-task.c) -target_link_libraries(hello-task m) +target_link_libraries(hello-task tikki m) diff --git a/test/hello-task.c b/test/hello-task.c index 6b9c8e2f7f9cd28af5ba2eadb067cd0f68e53d3c..1f91d7bf66a3b75d33bf236880b25d3bc15fed0e 100644 --- a/test/hello-task.c +++ b/test/hello-task.c @@ -2,14 +2,12 @@ #include <unistd.h> #include <omp.h> #include <math.h> -#include "AvailabilityMacros.h" int array[] = { 1, 2, 3, 4}; -/* +/* Extern function: required binary to be link against libtikki.so */ -//extern void ompt_set_task_name(const char* name ) __attribute__((weak_import)); //__attribute__((weak)); extern void ompt_set_task_name(const char* name ); @@ -19,13 +17,7 @@ int main() #pragma omp master { printf("Hello from %i\n", omp_get_thread_num()); - if (ompt_set_task_name != NULL) - { - printf("Defined symbol\n"); - ompt_set_task_name("hello"); - } - else - printf("Undefined symbol\n"); + ompt_set_task_name("hello"); #pragma omp task {