Jialei gh297 speed up gpu computation on ei grad ei

********* PEOPLE *************
Primary reviewer: @suntzu86 

Reviewers: @sc932 

********* DESCRIPTION **************
Branch Name: jialei_gh297_speed_up_gpu_computation_on_EI_gradEI
Ticket(s)/Issue(s): Closes #297 

********* TESTING DONE *************
make test
cpplint.py
I checked information online, at least for Fermi and Kepler, cudaFuncCachePreferShared sets 48k shared 16k cache.