adding functiuonality for determination of maximum avaiable GPU memory
by bruteforce cudaMallocs untill errors occur