Create new implementation of cudahm for luminosity function.