<commit_before>ifeq ($(OS),$(filter $(OS),Linux Darwin))
  ifndef USEPGCXX
    CUDACC_FLAGS += -Xcompiler "-Wall -Wextra -Werror"

    ifdef USEXLC
      # GCC does not warn about unused parameters in uninstantiated
      # template functions, but xlC does. This causes xlC to choke on the
      # OMP backend, which is mostly #ifdef'd out when you aren't using it.
      CUDACC_FLAGS += -Xcompiler "-Wno-unused-parameter"
    else # GCC, ICC or Clang AKA the sane ones.
      # XXX Enable -Wcast-align.
      CUDACC_FLAGS += -Xcompiler "-Winit-self -Woverloaded-virtual -Wno-cast-align -Wcast-qual -Wno-long-long -Wno-variadic-macros -Wno-unused-function"

      ifdef USE_CLANGLLVM
        IS_CLANG := 1
      endif

      ifeq ($(ABITYPE), androideabi)
        ifneq ($(findstring clang, $(BASE_COMPILER)),)
          IS_CLANG := 1
        endif
      endif

      ifeq ($(OS),Darwin)
        IS_CLANG := 1
      endif

      ifdef IS_CLANG 
        # GCC does not warn about unused parameters in uninstantiated
        # template functions, but Clang does. This causes Clang to choke on the
        # OMP backend, which is mostly #ifdef'd out when you aren't using it.
        CUDACC_FLAGS += -Xcompiler "-Wno-unused-parameter"

        # -Wunneeded-internal-declaration misfires in the unit test framework
        # on older versions of Clang.
        CUDACC_FLAGS += -Xcompiler "-Wno-unneeded-internal-declaration"
      else # GCC
        ifdef CCBIN
          CCBIN_ENVIRONMENT :=
          ifeq ($(OS), QNX)
            # QNX's GCC complains if QNX_HOST and QNX_TARGET aren't defined in the
            # environment.
            CCBIN_ENVIRONMENT := QNX_HOST=$(QNX_HOST) QNX_TARGET=$(QNX_TARGET)
          endif

          # Older versions of GCC (~4.4 and older) seem to print three version
          # numbers (major, minor and patch) with the -dumpversion flag; newer
          # versions only print two numbers.
          GCC_VERSION = $(shell $(CCBIN_ENVIRONMENT) $(CCBIN) -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\)\(\.[0-9]\)\?/\1\2/g')

          ifeq ($(shell if test $(GCC_VERSION) -lt 42; then echo true; fi),true)<commit_msg>[gpgpu] Reverting change 23771695 as ap_compute tests are failing.<commit_after>ifeq ($(OS),$(filter $(OS),Linux Darwin))
  ifndef USEPGCXX
    CUDACC_FLAGS += -Xcompiler "-Wall -Wextra -Werror"

    ifdef USEXLC
      # GCC does not warn about unused parameters in uninstantiated
      # template functions, but xlC does. This causes xlC to choke on the
      # OMP backend, which is mostly #ifdef'd out when you aren't using it.
      CUDACC_FLAGS += -Xcompiler "-Wno-unused-parameter"
    else # GCC, ICC or Clang AKA the sane ones.
      # XXX Enable -Wcast-align.
      CUDACC_FLAGS += -Xcompiler "-Winit-self -Woverloaded-virtual -Wno-cast-align -Wcast-qual -Wno-long-long -Wno-variadic-macros -Wno-unused-function"

      ifdef USE_CLANGLLVM
        IS_CLANG := 1
      endif

      ifeq ($(OS),Darwin)
        IS_CLANG := 1
      endif

      ifdef IS_CLANG 
        # GCC does not warn about unused parameters in uninstantiated
        # template functions, but Clang does. This causes Clang to choke on the
        # OMP backend, which is mostly #ifdef'd out when you aren't using it.
        CUDACC_FLAGS += -Xcompiler "-Wno-unused-parameter"

        # -Wunneeded-internal-declaration misfires in the unit test framework
        # on older versions of Clang.
        CUDACC_FLAGS += -Xcompiler "-Wno-unneeded-internal-declaration"
      else # GCC
        ifdef CCBIN
          CCBIN_ENVIRONMENT :=
          ifeq ($(OS), QNX)
            # QNX's GCC complains if QNX_HOST and QNX_TARGET aren't defined in the
            # environment.
            CCBIN_ENVIRONMENT := QNX_HOST=$(QNX_HOST) QNX_TARGET=$(QNX_TARGET)
          endif

          # Older versions of GCC (~4.4 and older) seem to print three version
          # numbers (major, minor and patch) with the -dumpversion flag; newer
          # versions only print two numbers.
          GCC_VERSION = $(shell $(CCBIN_ENVIRONMENT) $(CCBIN) -dumpversion | sed -e 's/\([0-9]\)\.\([0-9]\)\(\.[0-9]\)\?/\1\2/g')

          ifeq ($(shell if test $(GCC_VERSION) -lt 42; then echo true; fi),true)
{'fraction_non_alphanumeric': 0.10527566539923955, 'fraction_numerical': 0.00879277566539924, 'mean_word_length': 2.3753007217321573, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7200200', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1309, 'n_words': 424}