Really fix the pointer casting error and add a trace statement showing mapped wg/cu pairs