/* ============================================================ //--cambine: kernel funtion of Breadth-First-Search //--author: created by Jianbin Fang //--date: 06/12/2010 ============================================================ */ //#pragma OPENCL EXTENSION cl_khr_byte_addressable_store: enable //Structure to hold a node information typedef struct{ int starting; int no_of_edges; } Node; //--7 parameters __kernel void BFS_1( const __global Node* g_graph_nodes, const __global int* g_graph_edges, __global char* g_graph_mask, __global char* g_updating_graph_mask, __global char* g_graph_visited, __global int* g_cost, const int no_of_nodes){ int tid = get_global_id(0); if( tid