Skip to content

Commit

Permalink
fix the failure of package loading
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengxwen committed Dec 13, 2023
1 parent 7fe739a commit d28167b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: HIBAG
Type: Package
Title: HLA Genotype Imputation with Attribute Bagging
Version: 1.38.0
Date: 2023-10-09
Version: 1.38.1
Date: 2023-12-12
Depends: R (>= 3.2.0)
Imports: methods, RcppParallel
Suggests: parallel, ggplot2, reshape2, gdsfmt, SNPRelate, SeqArray, knitr,
Expand Down
4 changes: 3 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
CHANGES IN VERSION 1.38.0
CHANGES IN VERSION 1.38.1
-------------------------

o fix a compiler warning of "unused-but-set-variable" on Apple ARM chips

o fix the failure of package loading on Apple ARM chips in the R console


CHANGES IN VERSION 1.36.3
-------------------------
Expand Down
4 changes: 4 additions & 0 deletions src/HIBAG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,11 @@ SEXP HIBAG_Kernel_Version()

// using Intel TBB or not
#if RCPP_PARALLEL_USE_TBB
#if defined(__APPLE__) && (defined(__arm__) || defined(__arm64__))
int ntot = 1;
#else
int ntot = tbb::this_task_arena::max_concurrency();
#endif
SET_ELEMENT(ans, 2, ScalarInteger(ntot));
#else
SET_ELEMENT(ans, 2, ScalarInteger(NA_INTEGER));
Expand Down

0 comments on commit d28167b

Please sign in to comment.