Thrust targets need some some extra logic to be setup by consumers.    You can see how do this here:  https://github.com/rapidsai/cugraph/pull/1585/files#diff-1bba462ab050e89360fd88110a689e85ee037749cea091a1848ab574381d3795R352