Error: BFS on CUDA Synchronization
问题 My following code got an error, when it runs, some of the graph weights are being overwritten, but that should not be happening with the Xa array(which keeps which ones have already been visited) and the __syncthreads() function... May someone help? struct Node { int begin; // begining of the substring int num; // size of the sub-string }; __global__ void BFS (Node *Va, int *Ea, bool *Fa, bool *Xa, int *Ca, bool *parada) { int tid = threadIdx.x; if (Fa[tid] == true && Xa[tid] == false) { Fa