void RegionInstance::Impl::perform_copy_operation(RegionInstance::Impl *target, const ElementMask &src_mask, const ElementMask &dst_mask)
 
/* Copyright 2013 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.
 */
#include "lowlevel.h"
#include "accessor.h"
#include "legion_logging.h"
#ifndef __GNUC__
#include "atomics.h" // for __sync_fetch_and_add
#endif
using namespace LegionRuntime::Accessor;
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cstdlib>
#include <map>
#include <set>
#include <list>
#include <vector>
#include <pthread.h>
#include <errno.h>
#define BASE_EVENTS   1024  
#define BASE_RESERVATIONS 64    
#define BASE_METAS    64
#define BASE_ALLOCATORS   64
#define BASE_INSTANCES    64
// The number of threads for this version
#define NUM_PROCS   4
#define NUM_UTIL_PROCS  0
// Maximum memory in global
#define GLOBAL_MEM      4096   // (MB)  
#define LOCAL_MEM       16384  // (KB)