[llvm-bugs] [Bug 36574] New: OMPT runtime msvc support

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 2 08:55:16 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36574

            Bug ID: 36574
           Summary: OMPT runtime msvc support
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: trass3r at gmail.com
                CC: llvm-bugs at lists.llvm.org

The OMPT part of the OpenMP runtime does have a PSAPI based implementation for
Windows but does not currently support msvc as a compiler.

I attached a patch which gets it to compile and link, but is only for
reference.
Some parts of it like removing the non-standard VLA and the ompt-specific.h
change may be of general interest.

The OMPT_GET_*_ADDRESS hacks were just for testing.
These macros are only called with values of 0 or 1 (though the documentation at
https://gcc.gnu.org/onlinedocs/gcc/Return-Address.html for
__builtin_frame_address warns that "calling this function with a nonzero
argument can have unpredictable effects, including crashing the calling
program.")

The zero case may work with the given msvc intrinsics (not tested) but the
other one is not so easy to solve, may require assembly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180302/f226b632/attachment.html>


More information about the llvm-bugs mailing list