summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/boring_parts.cc4
-rwxr-xr-xsrc/compil.sh4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/boring_parts.cc b/src/boring_parts.cc
index 54c6863..e28f20b 100644
--- a/src/boring_parts.cc
+++ b/src/boring_parts.cc
@@ -98,7 +98,7 @@ int initOpenCL() {
// Take the first one FIXME : do more !
device=devices[0];
- std::cout << "\tWill using device 0 (" << device << ")" << std::endl;
+ std::cout << "\tWill use device 0 (" << device << ")" << std::endl;
delete [] devices;
delete [] platforms;
@@ -119,6 +119,8 @@ int initOpenCL() {
CL_GLX_DISPLAY_KHR, (intptr_t) glXGetCurrentDisplay(),
CL_GL_CONTEXT_KHR, (intptr_t) gGlCtx, 0
};
+
+ std::cout << "OpenCL initialization done." << std::endl;
return 0;
}
#endif /*HAS_OPENCL*/
diff --git a/src/compil.sh b/src/compil.sh
index 10cd630..84ed7c4 100755
--- a/src/compil.sh
+++ b/src/compil.sh
@@ -10,13 +10,13 @@ AMDAPP_PATH="/opt/AMDAPP"
DEFINES=""
INCLUDES=""
-LIBS="-lglew"
+LIBS=""
# OpenCL
if [ -d "$AMDAPP_PATH/include" ]
then DEFINES="$DEFINES -DHAS_OPENCL"
INCLUDES="$INCLUDES -I $AMDAPP_PATH/include"
- LIBS="$LIBS -lOpenCL"
+ LIBS="$LIBS -L/opt/AMDAPP/lib/x86_64 -lGLEW -lOpenCL "
else echo "WARNING : invalid AMDAPP_PATH : '$AMDAPP_PATH'"
fi