#ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "generic/THCPropose.cuh" #else void THCTensor_(propose)(THCState *state, THCudaLongTensor *color, THCudaLongTensor *prop, THCudaLongTensor *row, THCudaLongTensor *col, THCTensor *weight, THCudaLongTensor *degree, THCudaLongTensor *cumDegree) { KERNEL_REAL_RUN(weightedProposeKernel, THCudaLongTensor_nElement(state, color), THCudaLongTensor_data(state, color), THCudaLongTensor_data(state, prop), THCudaLongTensor_data(state, row), THCudaLongTensor_data(state, col), THCTensor_(data)(state, weight), THCudaLongTensor_data(state, degree), THCudaLongTensor_data(state, cumDegree)); } #endif // THC_GENERIC_FILE