Allocating the context in initializeOpenCL().