C++/CUDA code of the Direct Mapping floorplanner