Questions tagged [libgomp]

A gcc implementation of OpenMP.

The GNU Offloading and Multi Processing Runtime Library is an implementation of OpenMP for the GNU C Compiler (gcc). https://gcc.gnu.org/projects/gomp/

32 questions
13
votes
4 answers

Xgboost throws an error when trying to import

I have a project that is using xgboost. We now transfer the project to containers. But after installing it using pip, it throws the following error: Traceback (most recent call last): File "restart_db.py", line 5, in from…
NotSoShabby
  • 3,316
  • 9
  • 32
  • 56
10
votes
3 answers

Telling GCC to *not* link libgomp so it links libiomp5 instead

I need to figure out a compiler/linker directive I can feed into gcc so that it won't automatically link libgomp when -fopenmp is specified. The reason is that I'm trying to build against Intel's MKL BLAS. MKL requires adding a separate Intel…
Bob
  • 1,274
  • 1
  • 13
  • 26
6
votes
2 answers

OpenMP + linux - GOMP_4.0 not found

I've been trying to compile a program which uses OpenMP on suse with gcc --version 4.9.4 > g++ -std=c++11 -o a.exe -fopenmp ./file.cpp > ./a.exe ./a.exe: /usr/lib64/libgomp.so.1: version `GOMP_4.0' not found (required by ./a.exe) I have a file…
Yurkee
  • 795
  • 2
  • 9
  • 23
5
votes
1 answer

Support for OMPT in mainstream compilers?

The OpenMP specification from version 5.0 defines the OMPT interface to allow external tools to query the openmp runtime. I wanted to give it a try but i am really confused about how mainstream compilers actually support this. GCC-11 claims to have…
user1551605
  • 166
  • 9
5
votes
4 answers

segmentation fault when using omp parallel for, but not sequentially

I'm having trouble using the #pragma omp parallel for Basically I have several hundred DNA sequences that I want to run against an algorithm called NNLS. I figured that doing it in parallel would give me a pretty good speed up, so I applied the…
MutantTurkey
  • 536
  • 5
  • 14
2
votes
2 answers

OpenMP: "libgomp: Thread creation failed: Resource temporarily unavailable" when code run as regular user

When I run the following example code: #include "stdio.h" #include int main(int argc, char *argv[]) { #pragma omp parallel { int NCPU,tid,NPR,NTHR; /* get the total number of CPUs/cores available for OpenMP */ NCPU =…
conk
  • 57
  • 1
  • 1
  • 9
2
votes
0 answers

OpenMP not seeing all the CPUs

I use OpenMP with MinGW on Windows. GCC version 7.2.0 x86-64-posix-sev-rev1, Built by MinGW-W64 project. On a computer with 2 x Xeon E5-2699 V4 running Windows Server 2016. I am running: printf("%d ", omp_get_num_procs()); printf("%d ",…
Piotr Lopusiewicz
  • 2,514
  • 2
  • 27
  • 38
2
votes
1 answer

Objdump disassemble doesn't match source code

I'm investigating the execution flow of a OpenMP program linked to libgomp. It uses the #pragma omp parallel for. I already know that this construct becomes, among other things, a call to GOMP_parallel function, which is implemented as…
Márcio Jales
  • 205
  • 1
  • 8
2
votes
0 answers

Camb error with "GOMP 4.0"

I'm trying to use CAMB in jupyter notebook, so I used the first part of the CAMB demo code: %matplotlib inline import sys, platform, os from matplotlib import pyplot as plt import numpy as np #uncomment this if you are running…
Xoca
  • 23
  • 4
2
votes
1 answer

How can I separately build and develop libgomp (openMP runtime)?

I am trying to make changes to the openMP runtime library (GOMP). As far as I know, the library comes with GCC compiler but my goal is to work on GOMP alone. So I wonder how I can build and develop GOMP separately from GCC. Any help would be highly…
Nabil
  • 23
  • 4
2
votes
0 answers

is it possible to change the OpenMP scheduler for tasks?

Can I provide an implementation specific scheduler? If so, is there some documentation about how to do it?
Dervin Thunk
  • 19,515
  • 28
  • 127
  • 217
1
vote
1 answer

libgomp: Thread creation failed: Resource temporarily unavailable OpenMP parallel Merge Sorting

I am new to OpenMP. I was trying to implement a parallel version of merge sorting. The code of my serial implementation is the same of this, but I did not use the parallelMergeSort function. My parallel implementation is the following: //PARALLEL…
CasellaJr
  • 378
  • 2
  • 11
  • 26
1
vote
2 answers

[AZURE]OSError: libgomp.so.1: cannot open shared object file: No such file or directory

[Hosted on Azure App Services] Container crashing due to this error: 2021-07-05T20:06:22.251645248Z [2021-07-05 20:06:22 +0000] [39] [ERROR] Exception in worker process 2021-07-05T20:06:22.251697248Z Traceback (most recent call…
Avi Coomar
  • 21
  • 2
1
vote
1 answer

Cannot understand how libgomp implements the FOR construct

According to the libgomp manual, a code in the form: #pragma omp parallel for for (i = lb; i <= ub; i++) body; becomes void subfunction (void *data) { long _s0, _e0; while (GOMP_loop_static_next (&_s0, &_e0)) { long _e1 = _e0, i; …
Márcio Jales
  • 205
  • 1
  • 8
1
vote
0 answers

How to enable libgomp

When running gcc -v, --enable-libgomp is excluded. How can I enable libgomp in gcc ? gcc -v results: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with:…
RonTLV
  • 2,376
  • 2
  • 24
  • 38
1
2 3