Skip to content

Commit

Permalink
Merge pull request #48 from lavakin/master
Browse files Browse the repository at this point in the history
Disabled parallelization for linux
  • Loading branch information
HajkD authored Oct 8, 2024
2 parents 1a1a04e + 30fc596 commit 04f2c7c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
18 changes: 18 additions & 0 deletions config.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
0.29.2
3
using C compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’
using SDK: ‘’
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c test-omp.c -o test-omp.o
test-omp.c:1:10: fatal error: 'omp.h' file not found
#include <omp.h>
^~~~~~~
1 error generated.
make: *** [test-omp.o] Error 1
using C compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’
using SDK: ‘’
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c test-omp.c -o test-omp.o
test-omp.c:1:10: fatal error: 'omp.h' file not found
#include <omp.h>
^~~~~~~
1 error generated.
make: *** [test-omp.o] Error 1
3 changes: 2 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ EOF
detect_openmp () {
export PKG_CXXFLAGS=""
if [ "$(uname)" = "Linux" ]; then

: '
printf "%s" "* checking if R installation supports OpenMP without any extra hints... "
if "${R_HOME}/bin/R" CMD SHLIB test-omp.c >> config.log 2>&1; then
echo "yes"
Expand All @@ -105,6 +105,7 @@ detect_openmp () {
else
echo "no"
fi
'
fi # uname=Linux

if [ "$(uname)" = "Darwin" ]; then
Expand Down
2 changes: 2 additions & 0 deletions inst/cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CC=clang -arch arm64
CFLAGS=-falign-functions=64 -Wall -g -O2
10 changes: 0 additions & 10 deletions src/Makevars

This file was deleted.

0 comments on commit 04f2c7c

Please sign in to comment.