Skip to content

Commit

Permalink
- add
Browse files Browse the repository at this point in the history
  • Loading branch information
billbillbilly committed Oct 30, 2023
1 parent c4d754b commit 99a81d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/multiLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ Rcpp::List multiLabel(Rcpp::NumericMatrix &vpts,
Rcpp::List output(vptnum);
#ifdef _WIN32
#ifdef _OPENMP
int main() {
std::cout << "OpenMP support is available" << std::endl;
return 0;
}
#pragma omp parallel for num_threads(workers)
std::cout << "OpenMP support is available" << std::endl;
#else
int main() {
std::cout << "OpenMP support is not available" << std::endl;
return 0;
}
#pragma omp parallel for num_threads(1)
std::cout << "OpenMP support is not available" << std::endl;
#endif
for (unsigned int i = 0; i < vptnum; i++) {
const Rcpp::NumericMatrix sub_dsm = dsm_list[i];
Expand Down

0 comments on commit 99a81d6

Please sign in to comment.