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:
gothictomato
2022-08-27 09:11:29 -04:00
parent 84374e23fd
commit e2b633c802
5 changed files with 424 additions and 16 deletions

16
main.c
View File

@@ -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;
/*