cleanup: sample_latent_vars_stub() to contain all OpenCL boilerplate