Browse Source

socl: create links to existing icd files and create a new socl.icd file in socl/vendors directory

Nathalie Furmento 13 years ago
parent
commit
8768acacdd
2 changed files with 11 additions and 0 deletions
  1. 9 0
      configure.ac
  2. 2 0
      socl/vendors/socl.icd.in

+ 9 - 0
configure.ac

@@ -1766,6 +1766,14 @@ AC_CONFIG_COMMANDS([executable-scripts], [
   chmod +x tools/starpu_workers_activity
   chmod +x tools/starpu_workers_activity
 ])
 ])
 
 
+# Create links to ICD files in build/socl/vendors directory. SOCL will use this directory as the OCL_ICD_VENDORS directory
+for icd in /etc/OpenCL/vendors/*.icd ; do
+    if test "$(basename $icd)" != "socl.icd" ; then
+         new_icd=$(basename $icd)
+ 	 AC_CONFIG_LINKS([socl/vendors/$new_icd:$icd])
+    fi
+done
+
 AC_CONFIG_FILES(tests/regression/regression.sh tests/regression/profiles tests/regression/profiles.build.only)
 AC_CONFIG_FILES(tests/regression/regression.sh tests/regression/profiles tests/regression/profiles.build.only)
 AC_CONFIG_HEADER(src/common/config.h include/starpu_config.h gcc-plugin/src/starpu-gcc-config.h starpu-top/config.h)
 AC_CONFIG_HEADER(src/common/config.h include/starpu_config.h gcc-plugin/src/starpu-gcc-config.h starpu-top/config.h)
 
 
@@ -1778,6 +1786,7 @@ AC_OUTPUT([
 	socl/src/Makefile
 	socl/src/Makefile
 	socl/examples/Makefile
 	socl/examples/Makefile
         socl/socl-1.0.pc
         socl/socl-1.0.pc
+	socl/vendors/socl.icd
 	libstarpu.pc
 	libstarpu.pc
 	starpu-1.0.pc
 	starpu-1.0.pc
 	mpi/libstarpumpi.pc
 	mpi/libstarpumpi.pc

+ 2 - 0
socl/vendors/socl.icd.in

@@ -0,0 +1,2 @@
+@STARPU_BUILD_DIR@/socl/src/.libs/libsocl-1.0.so
+