Prepare kernel before computation to exclude copilation time.