Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach new #3

Open
wants to merge 16 commits into
base: attach-pr
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions examples/attach_array_cpy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#------------------------------------------------------------------------------#
# Copyright 2017 Kitware, Inc.
#
# 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.
#------------------------------------------------------------------------------#

cmake_minimum_required(VERSION 3.1)
project(LegionExample_attach_file)

include(CheckCXXCompilerFlag)

check_cxx_compiler_flag( "-std=c++11" CXX11_COMPILER)

if(CXX11_COMPILER)
set(CMAKE_CXX_STANDARD 11)
else()
message(FATAL_ERROR "C++11 compatible compiler not found")
endif()

# Only search if were building stand-alone and not as part of Legion
if(NOT Legion_SOURCE_DIR)
find_package(Legion REQUIRED)
endif()

add_executable(attach_file attach_file.cc)
target_link_libraries(attach_file Legion::Legion)
if(Legion_ENABLE_TESTING)
add_test(NAME attach_file COMMAND $<TARGET_FILE:attach_file>)
endif()



51 changes: 51 additions & 0 deletions examples/attach_array_cpy/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Copyright 2017 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.
#


ifndef LG_RT_DIR
$(error LG_RT_DIR variable is not defined, aborting build)
endif

# Flags for directing the runtime makefile what to include
DEBUG ?= 1 # Include debugging symbols
OUTPUT_LEVEL ?= LEVEL_DEBUG # Compile time logging level
USE_CUDA ?= 0 # Include CUDA support (requires CUDA)
USE_GASNET ?= 0 # Include GASNet support (requires GASNet)
USE_HDF ?= 0 # Include HDF5 support (requires HDF5)
ALT_MAPPERS ?= 0 # Include alternative mappers (not recommended)

# Put the binary file name here
OUTFILE ?= attach_array
# List all the application source files here
GEN_SRC ?= attach_array.cc # .cc files
GEN_GPU_SRC ?= # .cu files

# You can modify these variables, some will be appended to by the runtime makefile
INC_FLAGS ?=
CC_FLAGS ?=
NVCC_FLAGS ?=
GASNET_FLAGS ?=
LD_FLAGS ?=
# For Point and Rect typedefs
CC_FLAGS += -std=c++11

###########################################################################
#
# Don't change anything below here
#
###########################################################################

include $(LG_RT_DIR)/runtime.mk

Loading