<commit_before>-- Copyright 2018 Stanford University
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
--     http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.

-- Regent Configuration and Command Line Parsing

local common_config = require("common/config")

local config = {}

local default_options = {
  -- Main user-facing correctness flags:
  ["bounds-checks"] = false,

  -- Main user-facing optimization flags:
  ["cuda"] = true,
  ["cuda-offline"] = false,
  ["cuda-arch"] = os.getenv("GPU_ARCH") or "fermi",
  ["index-launch"] = true,
  ["inline"] = true,
  ["future"] = true,
  ["leaf"] = true,
  ["inner"] = true,
  ["mapping"] = true,
  ["openmp"] = false,
  ["openmp-strict"] = false,
  ["skip-empty-tasks"] = true,
  ["vectorize"] = true,
  ["vectorize-unsafe"] = false,

  -- Legion runtime optimization flags:
  ["legion-leaf"] = true,
  ["legion-inner"] = true,

  -- Dataflow optimization flags:
  ["flow"] = os.getenv('USE_RDIR') == '1' or false,
  ["flow-spmd"] = false,
  ["flow-spmd-shardsize"] = 1,

  -- Experimental auto-parallelization flags:
  ["parallelize"] = true,
  ["parallelize-dop"] = "4",
  ["parallelize-global"] = true,

  -- Miscellaneous, internal or special-purpose flags:
  ["aligned-instances"] = false,
  ["cached-iterators"] = false,
  ["debug"] = false,
  ["no-dynamic-branches"] = true,
  ["no-dynamic-branches-assert"] = false,
  ["pretty"] = false,
  ["layout-constraints"] = true,
  ["trace"] = true,
  ["validate"] = true,
  ["emergency-gc"] = false,
  ["jobs"] = "1",
  ["incr-comp"] = false, -- incremental compilation

  -- Need this here to make the logger happy.
  ["log"] = "",
}<commit_msg>regent: Add environment variable REGENT_INCREMENTAL to enable incremental compilation.<commit_after>-- Copyright 2018 Stanford University
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
--     http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.

-- Regent Configuration and Command Line Parsing

local common_config = require("common/config")

local config = {}

local default_options = {
  -- Main user-facing correctness flags:
  ["bounds-checks"] = false,

  -- Main user-facing optimization flags:
  ["cuda"] = true,
  ["cuda-offline"] = false,
  ["cuda-arch"] = os.getenv("GPU_ARCH") or "fermi",
  ["index-launch"] = true,
  ["inline"] = true,
  ["future"] = true,
  ["leaf"] = true,
  ["inner"] = true,
  ["mapping"] = true,
  ["openmp"] = false,
  ["openmp-strict"] = false,
  ["skip-empty-tasks"] = true,
  ["vectorize"] = true,
  ["vectorize-unsafe"] = false,

  -- Legion runtime optimization flags:
  ["legion-leaf"] = true,
  ["legion-inner"] = true,

  -- Dataflow optimization flags:
  ["flow"] = os.getenv('USE_RDIR') == '1' or false,
  ["flow-spmd"] = false,
  ["flow-spmd-shardsize"] = 1,

  -- Experimental auto-parallelization flags:
  ["parallelize"] = true,
  ["parallelize-dop"] = "4",
  ["parallelize-global"] = true,

  -- Miscellaneous, internal or special-purpose flags:
  ["aligned-instances"] = false,
  ["cached-iterators"] = false,
  ["debug"] = false,
  ["no-dynamic-branches"] = true,
  ["no-dynamic-branches-assert"] = false,
  ["pretty"] = false,
  ["layout-constraints"] = true,
  ["trace"] = true,
  ["validate"] = true,
  ["emergency-gc"] = false,
  ["jobs"] = "1",
  ["incr-comp"] = os.getenv('REGENT_INCREMENTAL') == '1' or false, -- incremental compilation

  -- Need this here to make the logger happy.
  ["log"] = "",
}
{'fraction_non_alphanumeric': 0.16871663959155256, 'fraction_numerical': 0.0058018101647714084, 'mean_word_length': 3.6294307196562836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '897755', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1335, 'n_words': 421}