cuda preparations