Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/configure.ac
ViewVC logotype

Diff of /branches/pure-cfg/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1402, Wed Jun 29 17:52:13 2011 UTC revision 1403, Wed Jun 29 18:33:46 2011 UTC
# Line 109  Line 109 
109  #endif  #endif
110      ]])],      ]])],
111      [CL_VERSION=`./conftest$EXEEXT`], [CL_VERSION=0])      [CL_VERSION=`./conftest$EXEEXT`], [CL_VERSION=0])
112    dnl
113    dnl check to see how we access the host-side vector types.  For OpenCL 1.1,
114    dnl the specification specifies the behavior, but it was unspecified in 1.0.
115    dnl
116      AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
117    # ifdef HAVE_CL_CL_H
118    #   include <CL/cl.h>
119    # elif defined(HAVE_OPENCL_CL_H)
120    #   include <OpenCL/cl.h>
121    # else
122    #   error no cl.h
123    # endif]],
124        [[cl_float4 x; x[0] = 0.0;]])],
125        [AC_DEFINE([CL_HOST_VECTORS_ARE_ARRAYS],[1],[host vector types are arrays])],
126    dnl
127    dnl not arrays, so try the OpenCL 1.1 structure representation
128    dnl
129        [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
130    # ifdef HAVE_CL_CL_H
131    #   include <CL/cl.h>
132    # elif defined(HAVE_OPENCL_CL_H)
133    #   include <OpenCL/cl.h>
134    # else
135    #   error no cl.h
136    # endif]],
137        [[cl_float4 x; x.s[0] = 0.0;]])],
138        [AC_DEFINE([CL_HOST_VECTORS_ARE_STRUCTS],[1],[host vector types are structs])],
139        [AC_MSG_ERROR([unable to figure out host types for OpenCL vectors])])])
140    # substitutions    # substitutions
141    AC_SUBST(CL_LIBS)    AC_SUBST(CL_LIBS)
142  fi  fi

Legend:
Removed from v.1402  
changed lines
  Added in v.1403

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0