compat/cuda: Pass a logging context to load functions