Skip to content

Cross compilation issue with OpenMP #39

Description

@MarbolanGos

Hi,

I was trying to compile the OpenBLAS using openMP forced with USE_OPENMP = 1 in Makefile.rule
The compiler I am using is the mingw one. When the option is not switched on it compiles without any issue but when setting this on it stops when trying to compile the file blas_server_omp.c as it does not know the file sys/mman.h.
If you modify the Makefile to include the /usr/include for this particular file it goes further but hangs also with a conflict on another file (I can reproduce if needed).

I made the change in the Makefile:
ifeq ($(USE_OPENMP), 1)
BLAS_SERVER = blas_server_omp.c
else
ifeq ($(OSNAME), WINNT)
BLAS_SERVER = blas_server_win32.c
endif

To:
ifeq ($(USE_OPENMP), 1)
BLAS_SERVER = blas_server_omp.c
ifeq ($(OSNAME), WINNT)
BLAS_SERVER = blas_server_win32.c
endif
ifeq ($(OSNAME), CYGWIN_NT)
BLAS_SERVER = blas_server_win32.c
endif
else
ifeq ($(OSNAME), WINNT)
BLAS_SERVER = blas_server_win32.c
endif

This allows to compile in my case but I think it is not very accurate... If someone has an idea to be better?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions