We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在运行DKRL的代码的时候,make报错 g++ Train_cnn_multi.cpp -o Train_cnn_multi -O2 -lpthread Train_cnn_multi.cpp: 在函数‘void run(int, int, int, double, double, int)’中: Train_cnn_multi.cpp:296:12: 警告:extended initializer lists only available with -std=c++11 or -std=gnu++11 [默认启用] mut_mutex =PTHREAD_MUTEX_INITIALIZER; ^ Train_cnn_multi.cpp: 在函数‘void sgd()’中: Train_cnn_multi.cpp:491:57: 警告:将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast] pthread_create(&threads[k], NULL, rand_sel, (void *)k); //train ^ Train_cnn_multi.cpp:499:61: 警告:将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast] pthread_create(&threads2[k], NULL, update_grad, (void *)k); //update ^ g++ Test_cnn.cpp -o Test_cnn -O2 -lpthread ,请问该如何解决
The text was updated successfully, but these errors were encountered:
警告而已,没有关系,可以继续执行编译的
Sorry, something went wrong.
No branches or pull requests
在运行DKRL的代码的时候,make报错
g++ Train_cnn_multi.cpp -o Train_cnn_multi -O2 -lpthread
Train_cnn_multi.cpp: 在函数‘void run(int, int, int, double, double, int)’中:
Train_cnn_multi.cpp:296:12: 警告:extended initializer lists only available with -std=c++11 or -std=gnu++11 [默认启用]
mut_mutex =PTHREAD_MUTEX_INITIALIZER;
^
Train_cnn_multi.cpp: 在函数‘void sgd()’中:
Train_cnn_multi.cpp:491:57: 警告:将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast]
pthread_create(&threads[k], NULL, rand_sel, (void *)k); //train
^
Train_cnn_multi.cpp:499:61: 警告:将一个整数转换为大小不同的指针 [-Wint-to-pointer-cast]
pthread_create(&threads2[k], NULL, update_grad, (void *)k); //update
^
g++ Test_cnn.cpp -o Test_cnn -O2 -lpthread
,请问该如何解决
The text was updated successfully, but these errors were encountered: