I am using the following line of code to slice a 7.4GB array:
xTrain = cp.array(db[(db[:,0]>=trainStartDate)&(db[:,0]<=trainEndDate)][:,5:])