1
(* Test client. Starts one multiplication *)
6
let host = ref "localhost" in
8
let lrows = ref 1000 in
9
let rcols = ref 1000 in
10
let rrows = ref 1000 in
12
[ "-host", Arg.Set_string host,
13
"<host> Contact the multiplier at this host";
15
"-port", Arg.Set_int port,
16
"<port> Contact the multiplier at this port";
18
"-size", Arg.Tuple [ Arg.Set_int lrows;
22
"<P> <Q> <R> Size of test: Multiply a PxR with a RxQ matrix"
24
(fun arg -> raise(Arg.Bad("Bad argument: " ^ arg)))
25
(sprintf "usage: %s <options>" Sys.argv.(0));
28
Mm_proto_clnt.Multiplier.V1.create_client2
30
Rpc_client.Inet(!host,!port),
31
Rpc_client.default_socket_config)) in
32
Mm_proto_clnt.Multiplier.V1.test_multiply
34
(!lrows, !rcols, !rrows)