 
                          return 0;
                      });
-
-        for (auto &code: m_codes) {
-            std::cout << code->rule << std::endl;
-        }
 
         int num_codes = m_codes.size();
 

gpu_match(char **codes, int num_codes, int urllen, int scheme_len,
          char *query, char *query_lower)
{
    //int idx = threadIdx.x * gridDim.x + blockIdx.x;
    int idx = blockIdx.x * blockDim.x + threadIdx.x;

    while (idx < num_codes) {

    cudaGetDeviceProperties(&deviceProp, 0);

    m_grid_dim = _ConvertSMVer2Cores(deviceProp.major, deviceProp.minor) * deviceProp.multiProcessorCount;
}

void
