 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) {


                         return 0;
                     });

        for (auto &code: m_codes) {
            std::cout << code->rule << std::endl;
        }

        int num_codes = m_codes.size();


        }

        m_need_gpu_init = false;
    }

    int dim;
