Skip to content

Commit

Permalink
vecAXPY.c OpenCL example fixes; spec is mostly okay, but enum_opencl_…
Browse files Browse the repository at this point in the history
…props.c needs updating; part of issue #27
  • Loading branch information
brnorris03 committed Dec 24, 2020
1 parent 5745da7 commit b87a02f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions testsuite/sandbox/opencl/tau_skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <sys/time.h>
#include <TAU.h>

#include <CL/opencl.hpp>

#define ORIO_OPENCL 1

Expand Down
3 changes: 2 additions & 1 deletion testsuite/sandbox/opencl/vecAXPY.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ void VecAXPY(int n, double a, double *x, double *y) {
param CL[] = ['-cl-fast-relaxed-math'];
}
def build {
arg build_command = 'gcc -O3 -I/opt/AMDAPP/include -I/home/users/nchaimov/werewolf/tau2/include -L/home/users/nchaimov/werewolf/tau2/x86_64/lib -lTAU -lOpenCL -DPROFILING_ON -DTAU_GNU -DTAU_DOT_H_LESS_HEADERS -fPIC -DTAU_SS_ALLOC_SUPPORT -DTAU_STRSIGNAL_OK';
arg build_command = '/usr/bin/c++ -O3 -g -I$OPENCL_DIR/include -isystem $OPENCL_DIR/external/OpenCL-Headers -DPROFILING_ON -DTAU_GNU -DTAU_DOT_H_LESS_HEADERS -fPIC -DTAU_SS_ALLOC_SUPPORT -DTAU_STRSIGNAL_OK';
arg libs = '-Wl,-rpath,$TAU_DIR -lTAU -Wl,-rpath,$OPENCL_LIBDIR -lOpenCL';
}
def input_params {
param N[] = [1000000];
Expand Down

0 comments on commit b87a02f

Please sign in to comment.