__global__ void initialize_vertices( Vertex * vertices, int starting_vertex, int num_vertices ) { int v = blockDim.x * blockIdx.x + threadIdx.x; if (v == starting_vertex) vertices[v] = 0 else vertices[v] = -1; }
ソフトウェアエンジニアの技術ブログ:Software engineer tech blog
随机应变 ABCD: Always Be Coding and … : хороший