Skip to content

Conversation

@estewart08
Copy link
Contributor

This is a simple hip program with -fopenmp. There was an unresolved symbol issue when using hip_host_overlay.h. Only programs with hip runtime calls, like hipMalloc, combined with openmp target regions should use this header. Hip programs with host openmp should not.

This is a simple hip program with -fopenmp. There was
an unresolved symbol issue when using hip_host_overlay.h.
Only programs with hip runtime calls, like hipMalloc,
combined with openmp target regions should use this header.
Hip programs with host openmp should not.
Comment on lines +7 to +16
VERS = $(shell $(AOMP)/bin/clang --version | grep -oP '(?<=clang version )[0-9.]+')
ifeq ($(shell expr $(VERS) \>= 12.0), 1)
ifeq ($(AOMP_SANITIZER),1)
RPTH = -Wl,-rpath,$(AOMPHIP)/lib/asan
LLIB = -L$(AOMPHIP)/lib/asan
else
RPTH = -Wl,-rpath,$(AOMPHIP)/lib
LLIB = -L$(AOMPHIP)/lib
endif
endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is all of that (still?) needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

3 participants