Jialei gh368 cuda python interface

********* PEOPLE *************
Primary reviewer: @suntzu86 

Reviewers: @sc932 

********* DESCRIPTION **************
Branch Name: jialei_gh368_cuda_python_interface
Ticket(s)/Issue(s): #368 

********* TESTING DONE *************
make test
Cool, ship it :)
On Aug 22, 2014 11:32 AM, "jialei" <notifications@github.com> wrote:

> In moe/optimal_learning/cpp/gpp_python_expected_improvement.cpp:
>
> > -                                                          best_so_far, max_int_steps,
> > -                                                          &found_flag, &randomness_source.uniform_generator,
> > -                                                          randomness_source.normal_rng_vec.data(),
> > -                                                          best_points_to_sample);
> > -
> > +      if (use_gpu == true) {
> > +#ifdef OL_GPU_ENABLED
> > +        CudaComputeOptimalPointsToSampleViaLatinHypercubeSearch(gaussian_process, domain, thread_schedule,
> > +                                                                input_container.points_being_sampled.data(),
> > +                                                                num_random_samples, num_to_sample,
> > +                                                                input_container.num_being_sampled,
> > +                                                                best_so_far, max_int_steps, &found_flag,
> > +                                                                which_gpu, &randomness_source.uniform_generator,
> > +                                                                best_points_to_sample);
> > +#else
> > +        OL_THROW_EXCEPTION(OptimalLearningException, "GPU is not installed or enabled!");
>
> When OL_GPU_ENABLED is not defined, all GPU related functions are simply
> not there
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Yelp/MOE/pull/394/files#r16613544>.
>