compare.c: In function ‘train_compare’:
compare.c:17:19: error: invalid initializer
17 | network net = parse_network_cfg(cfgfile);
| ^~~~~~~~~~~~~~~~~
compare.c:54:36: error: incompatible type for argument 1 of ‘train_network’
54 | float loss = train_network(net, train);
| ^~~
| |
| network {aka struct network}
In file included from network.h:4,
from compare.c:3:
../include/darknet.h:764:30: note: expected ‘network *’ {aka ‘struct network *’} but argument is of type ‘network’ {aka ‘struct network’}
764 | float train_network(network *net, data d);
| ~~~~~~~~~^~~
compare.c:62:26: error: incompatible type for argument 1 of ‘save_weights’
62 | save_weights(net, buff);
| ^~~
| |
| network {aka struct network}
In file included from network.h:4,
from compare.c:3:
../include/darknet.h:683:28: note: expected ‘network *’ {aka ‘struct network *’} but argument is of type ‘network’ {aka ‘struct network’}
683 | void save_weights(network *net, char *filename);
| ~~~~~~~~~^~~
compare.c:69:26: error: incompatible type for argument 1 of ‘save_weights’
69 | save_weights(net, buff);
| ^~~
| |
| network {aka struct network}
In file included from network.h:4,
from compare.c:3:
../include/darknet.h:683:28: note: expected ‘network *’ {aka ‘struct network *’} but argument is of type ‘network’ {aka ‘struct network’}
683 | void save_weights(network *net, char *filename);
| ~~~~~~~~~^~~
compare.c:75:18: error: incompatible type for argument 1 of ‘free_network’
75 | free_network(net);
| ^~~
| |
| network {aka struct network}
In file included from network.h:4,
from compare.c:3:
../include/darknet.h:691:28: note: expected ‘network *’ {aka ‘struct network *’} but argument is of type ‘network’ {aka ‘struct network’}
691 | void free_network(network *net);
| ~~~~~~~~~^~~
compare.c: In function ‘validate_compare’:
compare.c:84:19: error: invalid initializer
84 | network net = parse_network_cfg(filename);
| ^~~~~~~~~~~~~~~~~
compare.c:130:44: error: incompatible type for argument 1 of ‘network_predict_data’
130 | matrix pred = network_predict_data(net, val);
| ^~~
| |
| network {aka struct network}
In file included from network.h:4,
from compare.c:3:
../include/darknet.h:737:38: note: expected ‘network *’ {aka ‘struct network *’} but argument is of type ‘network’ {aka ‘struct network’}
737 | matrix network_predict_data(network *net, data test);
| ~~~~~~~~~^~~
compare.c: In function ‘bbox_comparator’:
compare.c:182:42: error: incompatible type for argument 1 of ‘network_predict’
182 | float *predictions = network_predict(net, X);
| ^~~
| |
| network {aka struct network}
In file included from network.h:4,
from compare.c:3:
../include/darknet.h:740:33: note: expected ‘network *’ {aka ‘struct network *’} but argument is of type ‘network’ {aka ‘struct network’}
740 | float *network_predict(network *net, float *input);
| ~~~~~~~~~^~~
compare.c: In function ‘bbox_fight’:
compare.c:211:42: error: incompatible type for argument 1 of ‘network_predict’
211 | float *predictions = network_predict(net, X);
| ^~~
| |
| network {aka struct network}
In file included from network.h:4,
from compare.c:3:
../include/darknet.h:740:33: note: expected ‘network *’ {aka ‘struct network *’} but argument is of type ‘network’ {aka ‘struct network’}
740 | float *network_predict(network *net, float *input);
| ~~~~~~~~~^~~
compare.c: In function ‘SortMaster3000’:
compare.c:230:19: error: invalid initializer
230 | network net = parse_network_cfg(filename);
| ^~~~~~~~~~~~~~~~~
compare.c: In function ‘BattleRoyaleWithCheese’:
compare.c:262:19: error: invalid initializer
262 | network net = parse_network_cfg(filename);
| ^~~~~~~~~~~~~~~~~
I tried to build the benchmark and the compiler reports the errors
cd yolo/src
nvcc -I../include -O3 *.c *.cu