Working to make OpenCL recognize the limitations of the device its on, as well as reusing the OpenCL kernel/context for multiple runs.
Signed-off-by: gothictomato <gothictomato@pm.me>
This commit is contained in:
16
main.c
16
main.c
@@ -250,17 +250,27 @@ int main() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
cnf* c = readDIMACS("/home/lev/Downloads/logistics/logistics.d.cnf");
|
||||
cnf* c = readDIMACS("/home/lev/Downloads/uf20/uf20-03.cnf");
|
||||
sortlastnum(c);
|
||||
|
||||
printf("%u\n", c->cnts[0]);
|
||||
// gpusolve(c);
|
||||
|
||||
gpusolve(c);
|
||||
|
||||
gpusolver* gs = initSolver();
|
||||
if (gs == NULL) return -1;
|
||||
|
||||
i32 res = gpusolve2(gs, c);
|
||||
|
||||
freeSolver(gs);
|
||||
|
||||
freecnf(c);
|
||||
|
||||
return 0;
|
||||
*/
|
||||
|
||||
runTests();
|
||||
return 0;
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user