Skip to content

[SWDEV-318074] Fix undefined references to modulo functions in target region - #65

Merged
ronlieb merged 1 commit into
ROCm:aomp-devfrom
DominikAdamski:swdev-318074
Nov 18, 2022
Merged

[SWDEV-318074] Fix undefined references to modulo functions in target region#65
ronlieb merged 1 commit into
ROCm:aomp-devfrom
DominikAdamski:swdev-318074

Conversation

@DominikAdamski

Copy link
Copy Markdown
Contributor

Eliminate calls to variadic modulo runtime functions. Variadic functions cause linking errors for OpenMP target pragma if we compile code without inline optimization (O0 level).

OpenMP math library is used for C/C++ and Fortran code. That's why Fortran runtime functions names should not collide with user C++ function names. Adding prefix __ before Fortran runtime functions name eliminates potential conflict with user C++ function names.

Co-Author: Shivarama Rao

… region

Eliminate calls to variadic modulo runtime functions. Variadic functions cause
linking errors for OpenMP target pragma if we compile code without
inline optimization.

OpenMP math library is used for C/C++ and Fortran code. That's why Fortran
runtime functions names should not collide with user C++ function names.
Adding prefix __ before Fortran runtime functions name eliminates potential
conflict with user C++ function names.

Co-Author: Shivarama Rao
@ronlieb
ronlieb merged commit f0677da into ROCm:aomp-dev Nov 18, 2022
@ronlieb

ronlieb commented Nov 18, 2022

Copy link
Copy Markdown
Contributor

and merged to aomp-epsdb

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants