This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/cuda/test.yap
Vítor Santos Costa 1593ee4918 fix interface
2013-10-07 12:38:08 +01:00

18 lines
256 B
Prolog

:- use_module(library(cuda)).
:- initialization(main).
main :-
cuda_extensional(db/2, _X),
cuda_rule((a(X, Y) :- db(Y, Z), db(X, Z), db(1, Z) ), Q),
cuda_eval(Q, L), writeln(here),
writeln(L).
db(1,a).
db(2,a).
db(5,b).
db(4,q).
db(6,w).
db(10,s).