message: unclobber opencl
diff: @@ -20,7 +20,6 @@ CXXFLAGS_PROGRAM += -include-pch $(STAN)src/stan/model/model_header.hpp.gch
  $(STAN_TARGETS) examples/bernoulli/bernoulli$(EXE) $(patsubst %.stan,%$(EXE),$(wildcard src/test/test-models/*.stan)) : %$(EXE) : $(STAN)src/stan/model/model_header.hpp.gch
  endif
  -
  ifneq ($(findstring allow_undefined,$(STANCFLAGS)),)
  $(STAN_TARGETS) examples/bernoulli/bernoulli$(EXE) $(patsubst %.stan,%$(EXE),$(wildcard src/test/test-models/*.stan)) : CXXFLAGS_PROGRAM += -include $(USER_HEADER)
  endif
  @@ -29,6 +28,10 @@ endif
  # Model executable
  ##
  +ifdef STAN_OPENCL
  +STANCFLAGS+= --use-opencl
  +endif
  +
  %.hpp : %.stan bin/stanc$(EXE)
  @echo ''
  @echo '--- Translating Stan model to C++ code ---'
  @@ -36,6 +39,7 @@ endif
  .PRECIOUS: %.hpp
  %$(EXE) : %.hpp %.d $(CMDSTAN_MAIN_O) $(LIBSUNDIALS) $(MPI_TARGETS) $(TBB_TARGETS)
  + @echo ''
  @echo '--- Compiling, linking C++ code ---'
  $(COMPILE.cpp) $(CXXFLAGS_PROGRAM) -x c++ -o $(subst \,/,$*).o $(subst \,/,$<)
  $(LINK.cpp) $(subst \,/,$*.o) $(CMDSTAN_MAIN_O) $(LDLIBS) $(LIBSUNDIALS) $(MPI_TARGETS) $(TBB_TARGETS) $(subst \,/,$(OUTPUT_OPTION))
  