[PATCH] D29654: [OpenMP] Integrate OpenMP target region cubin into host binary

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 8 08:53:39 PDT 2017


arphaman added a comment.

The cached results map doesn't have the key:

  (lldb) p CachedResults
  (std::__1::map<std::__1::pair<const clang::driver::Action *, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, clang::driver::InputInfo, std::__1::less<std::__1::pair<const clang::driver::Action *, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::allocator<std::__1::pair<const std::__1::pair<const clang::driver::Action *, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, clang::driver::InputInfo> > >) $0 = size=8 {
    [0] = {
      first = {
        first = 0x0000000111c01320
        second = "nvptx64-nvidia-cuda-host"
      }
      second = {
        Data = {
          Filename = 0x00007fff5fbff8f8 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp1.o"
          InputArg = 0x00007fff5fbff8f8
        }
        Kind = Filename
        Act = 0x0000000111c01320
        Type = TY_Object
        BaseInput = 0x00007fff5fbff8f8 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp1.o"
      }
    }
    [1] = {
      first = {
        first = 0x0000000111c01320
        second = "x86_64-apple-darwin17.0.0-x86_64-host"
      }
      second = {
        Data = {
          Filename = 0x00007fff5fbff8f8 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp1.o"
          InputArg = 0x00007fff5fbff8f8
        }
        Kind = Filename
        Act = 0x0000000111c01320
        Type = TY_Object
        BaseInput = 0x00007fff5fbff8f8 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp1.o"
      }
    }
    [2] = {
      first = {
        first = 0x0000000111c01420
        second = "nvptx64-nvidia-cuda-host"
      }
      second = {
        Data = {
          Filename = 0x00007fff5fbff949 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp2.o"
          InputArg = 0x00007fff5fbff949
        }
        Kind = Filename
        Act = 0x0000000111c01420
        Type = TY_Object
        BaseInput = 0x00007fff5fbff949 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp2.o"
      }
    }
    [3] = {
      first = {
        first = 0x0000000111c017d0
        second = "nvptx64-nvidia-cuda-openmp"
      }
      second = {
        Data = {
          Filename = 0x0000000111c048b0 "/var/folders/sh/cpr85hld32qf79m8x7vd31bw0000gn/T/openmp-offload-e30496.o"
          InputArg = 0x0000000111c048b0
        }
        Kind = Filename
        Act = 0x0000000111c017d0
        Type = TY_Object
        BaseInput = 0x00007fff5fbff8f8 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp1.o"
      }
    }
    [4] = {
      first = {
        first = 0x0000000111c017d0
        second = "x86_64-apple-darwin17.0.0-host"
      }
      second = {
        Data = {
          Filename = 0x0000000111c04830 "/var/folders/sh/cpr85hld32qf79m8x7vd31bw0000gn/T/openmp-offload-b856ec.o"
          InputArg = 0x0000000111c04830
        }
        Kind = Filename
        Act = 0x0000000111c017d0
        Type = TY_Object
        BaseInput = 0x00007fff5fbff8f8 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp1.o"
      }
    }
    [5] = {
      first = {
        first = 0x0000000111c01900
        second = "nvptx64-nvidia-cuda-openmp"
      }
      second = {
        Data = {
          Filename = 0x0000000111c035d0 "/var/folders/sh/cpr85hld32qf79m8x7vd31bw0000gn/T/openmp-offload-be86a1.o"
          InputArg = 0x0000000111c035d0
        }
        Kind = Filename
        Act = 0x0000000111c01900
        Type = TY_Object
        BaseInput = 0x00007fff5fbff949 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp2.o"
      }
    }
    [6] = {
      first = {
        first = 0x0000000111c01900
        second = "x86_64-apple-darwin17.0.0-host"
      }
      second = {
        Data = {
          Filename = 0x0000000111c034e0 "/var/folders/sh/cpr85hld32qf79m8x7vd31bw0000gn/T/openmp-offload-92791a.o"
          InputArg = 0x0000000111c034e0
        }
        Kind = Filename
        Act = 0x0000000111c01900
        Type = TY_Object
        BaseInput = 0x00007fff5fbff949 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp2.o"
      }
    }
    [7] = {
      first = {
        first = 0x0000000111c01a90
        second = "nvptx64-nvidia-cuda-openmp"
      }
      second = {
        Data = {
          Filename = 0x0000000111c03d90 "/var/folders/sh/cpr85hld32qf79m8x7vd31bw0000gn/T/openmp-offload-8db204.out"
          InputArg = 0x0000000111c03d90
        }
        Kind = Filename
        Act = 0x0000000111c01a90
        Type = TY_Image
        BaseInput = 0x00007fff5fbff8f8 "/Volumes/newAPFS/bisect/b/tools/clang/test/Driver/Output/openmp-offload.c.tmp1.o"
      }
    }
  }

Key:

  (lldb) p ActionTC
  (std::__1::pair<const clang::driver::Action *, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) $1 = {
    first = 0x0000000111c017d0
    second = "x86_64-apple-darwin17.0.0-x86_64-host"
  }


https://reviews.llvm.org/D29654





More information about the cfe-commits mailing list