Commit 38c22611 authored by Pillai, Himanshu's avatar Pillai, Himanshu
Browse files

Added a logo and cleaned kokkos tests

parent 5a5ffce5
logo:
@echo ""
@echo " \033[34mEeeeeeeeeeeeeeE LLlL Mm Mm Kk kk LllL\033[0m"
@echo " \033[34mEeeeeeeeeeeeeeE LLlL Mm Mm Mm Mm Kk kk LllL\033[0m"
@echo " \033[34mEee LLlL Mm Mm Mm Mm Kk kk LllL\033[0m"
@echo " \033[34mEee LllL Mm Mm Mm Mm Kk kk LllL\033[0m"
@echo " \033[34mEee LllL Mm Mm Mm Mm Kk kk LllL\033[0m"
@echo " \033[34mEee LllL Mm Mm Mm Mm Kk kk eeeeeeeee RrRrRrRrRr Nnn Nn eeeeeeeee LllL\033[0m"
@echo " \033[34mEeeeeeeeE LllL Mm Mm Mm Kk kk kk eeeeeeeee Rr Rr Nn nn Nn eeeeeeeee LllL\033[0m"
@echo " \033[34mEeeeeeeeE LllL Mm Mm Kkk kk eeee Rr Rr Nn nn Nn eeee LllL\033[0m"
@echo " \033[34mEee LllL Mm Mm Kk kk eeeeeeee RrRrRrRrRr Nn nn Nn eeeeeeee LllL\033[0m"
@echo " \033[34mEee LllL Mm Mm Kk kk eeeeeeee RrR Nn nn Nn eeeeeeee LllL\033[0m"
@echo " \033[34mEee LllL Mm Mm Kk kk eeee Rr Rr Nn nn Nn eeee LllL\033[0m"
@echo " \033[34mEee LllL Mm Mm Kk kk eeee Rr Rr Nn nn Nn eeee LllL\033[0m"
@echo " \033[34mEeeeeeeeeeeeeeE LllllllllllLllL Mm Mm Kk kk eeeeeeeee Rr Rr Nn nn Nn eeeeeeeee LlllllllLllL\033[0m"
@echo " \033[34mEeeeeeeeeeeeeeE LllllllllllLllL Mm Mm Kk kk eeeeeeeee Rr Rr Nn nnNn eeeeeeeee LlllllllLllL\033[0m"
@echo ""
@echo ""
@echo " \033[92mCopyright 2019, UT Battelle / Oak Ridge National Laboratory \033[0m"
@echo ""
@echo "\033[35mCollaboration: \033[0m"
@echo " \033[36mOak Ridge Leadership Computing Facility \033[0m"
@echo " \033[36mUnited States Department of Energy \033[0m"
@echo " \033[36mThe Energy Exascale Earth System Model (E3SM) Project \033[0m"
@echo " \033[36mCoupling Approaches for Next-Generation Architectures (CANGA) - Scientific Discovery through Advanced Computing (SciDAC) \033[0m"
@echo ""
@echo "\033[32mContact :\033[0m \033[31mcoonet@ornl.gov , pillaihk@ornl.gov \033[0m"
\ No newline at end of file
......@@ -11,7 +11,8 @@ Error codes:
----------------------------------------------------------
"""
from colorama import init
from termcolor import colored
import argparse
import numpy as np
import os
......@@ -25,7 +26,7 @@ def run_comparison(testname, full_message=False):
gold = np.loadtxt(fname_gold, skiprows=1)
except IOError:
print 'ERROR: cannot find gold file "%s", bad testname?'%fname_gold
return 'Error in the gold file '
return colored('Error in the gold file ', 'magenta')
# get my file
fname_mine = '%s.soln'%testname
......@@ -37,7 +38,7 @@ def run_comparison(testname, full_message=False):
mine = np.loadtxt(fname_mine, skiprows=1)
except IOError:
print 'ERROR: cannot find my file "%s", failed test run?'%fname_mine
return 'Error in my file '
return colored('Error in my file ', 'cyan')
# compare
try:
......@@ -46,12 +47,12 @@ def run_comparison(testname, full_message=False):
if full_message:
print ''
print 'Test: "%s" FAILED with error: "%r"'%(testname, err)
return 'Error in my file size '
return colored('Error in my file size ','yellow')
if close:
return 'PASS '
return colored('PASS ','green')
else:
return 'FAIL '
return colored('FAIL ','red')
if __name__ == "__main__":
......
......@@ -4,6 +4,7 @@ ELM_ROOT = $(ELM_BASE)/$(KERNEL_FOLDER)
CXXFLAGS = -std=c++11 -g
include $(ELM_BASE)/config/Makefile.config
include $(ELM_BASE)/config/Makefile.rules
......@@ -15,12 +16,13 @@ EXEC_TESTS = CanopyHydrology_kern1_single \
CanopyHydrology_kern1_multiple \
CanopyHydrology_module
.PHONY: links library test
default: all
all: links library $(TESTS)
include $(ELM_BASE)/config/Makefile.logo
all: logo links library $(TESTS)
test: $(EXEC_TESTS)
python ../compare_to_gold.py $(TESTS)
......@@ -47,5 +49,4 @@ allclean: clean
links:
@echo "making in links"
$(MAKE) -C ../links links
$(MAKE) -C ../links links
\ No newline at end of file
......@@ -3,6 +3,10 @@
#ifndef ELM_KERNEL_TEST_UTILS_HH_
#define ELM_KERNEL_TEST_UTILS_HH_
#include <iostream>
#include <memory>
#include <type_traits>
namespace ELM {
namespace Utils {
......
......@@ -21,7 +21,7 @@ EXEC_TESTS = CanopyHydrology_kern1_single \
.PHONY: links library test
default: all
default: logo all
all: library $(TESTS)
......@@ -57,3 +57,5 @@ links:
library:
$(MAKE) -C $(OBJECT) cc_fortran_wrappers
include $(OBJECT)config/Makefile.logo
\ No newline at end of file
......@@ -57,15 +57,17 @@ OBJ1 = $(SRC1:.cpp=.cpp.o)
OBJ2 = $(SRC2:.cpp=.cpp.o)
OBJ3 = $(SRC3:.cpp=.cpp.o)
.PHONY: links Serial OpenMP Cuda
include $(ELM_BASE)/config/Makefile.logo
Serial: build1 build2 build3 test
.PHONY: logo links Serial OpenMP Cuda
Serial: logo build1 build2 build3 test
echo "Serial"
echo "Start Build"
OpenMP: build1 build2 build3 test
OpenMP: logo build1 build2 build3 test
echo "OpenMP"
echo "Start Build"
Cuda: build2 build3 test1
Cuda: logo build2 build3 test1
echo "Cuda"
echo "Start Build"
......
......@@ -38,22 +38,18 @@ TESTS = test_CanopyHydrology_kern1_multiple \
EXEC_TESTS = CanopyHydrology_kern1_multiple \
CanopyHydrology_module
#
# Load Legion logic, but not rules
#
NO_BUILD_RULES = 1
include $(LG_RT_DIR)/runtime.mk
#
# Legion rules
#
.PHONY: links library test
default: all
default: logo all
echo "GEN OBJS = $(GEN_OBJS)"
......@@ -129,7 +125,7 @@ llvmjit_internal.cc.o : CXXFLAGS += $(LLVM_CXXFLAGS)
%/llvmjit_internal.cc.o : CXXFLAGS += $(LLVM_CXXFLAGS)
endif
include $(ELM_BASE)/config/Makefile.logo
links:
@echo "making in links"
......
......@@ -7,6 +7,44 @@ set(ELM_ROOT "/home/7hp/Downloads/elm_kernels/src/cc/")
set (NETCDF "/usr/local")
set(CMAKE_MODULE_PATH $RAJA_DIR)
if(NOT WIN32)
string(ASCII 27 Esc)
set(ColourReset "${Esc}[m")
set(Red "${Esc}[31m")
set(Green "${Esc}[32m")
set(Yellow "${Esc}[33m")
set(Blue "${Esc}[34m")
set(Magenta "${Esc}[35m")
set(Cyan "${Esc}[36m")
endif()
message(" ")
message(" ${Blue}EeeeeeeeeeeeeeE LLlL Mm Mm Kk kk LllL${ColourReset}")
message(" ${Blue}EeeeeeeeeeeeeeE LLlL Mm Mm Mm Mm Kk kk LllL${ColourReset}")
message(" ${Blue}Eee LLlL Mm Mm Mm Mm Kk kk LllL${ColourReset}")
message(" ${Blue}Eee LllL Mm Mm Mm Mm Kk kk LllL${ColourReset}")
message(" ${Blue}Eee LllL Mm Mm Mm Mm Kk kk LllL${ColourReset}")
message(" ${Blue}Eee LllL Mm Mm Mm Mm Kk kk eeeeeeeee RrRrRrRrRr Nnn Nn eeeeeeeee LllL${ColourReset}")
message(" ${Blue}EeeeeeeeE LllL Mm Mm Mm Kk kk kk eeeeeeeee Rr Rr Nn nn Nn eeeeeeeee LllL${ColourReset}")
message(" ${Blue}EeeeeeeeE LllL Mm Mm Kkk kk eeee Rr Rr Nn nn Nn eeee LllL${ColourReset}")
message(" ${Blue}Eee LllL Mm Mm Kk kk eeeeeeee RrRrRrRrRr Nn nn Nn eeeeeeee LllL${ColourReset}")
message(" ${Blue}Eee LllL Mm Mm Kk kk eeeeeeee RrR Nn nn Nn eeeeeeee LllL${ColourReset}")
message(" ${Blue}Eee LllL Mm Mm Kk kk eeee Rr Rr Nn nn Nn eeee LllL${ColourReset}")
message(" ${Blue}Eee LllL Mm Mm Kk kk eeee Rr Rr Nn nn Nn eeee LllL${ColourReset}")
message(" ${Blue}EeeeeeeeeeeeeeE LllllllllllLllL Mm Mm Kk kk eeeeeeeee Rr Rr Nn nn Nn eeeeeeeee LlllllllLllL${ColourReset}")
message(" ${Blue}EeeeeeeeeeeeeeE LllllllllllLllL Mm Mm Kk kk eeeeeeeee Rr Rr Nn nnNn eeeeeeeee LlllllllLllL${ColourReset}")
message(" ")
message(" ")
message(" ${Green} Copyright 2019, UT Battelle / Oak Ridge National Laboratory ${ColourReset}")
message(" ")
message(" ${Magenta} Collaboration ${ColourReset}")
message(" ${Cyan}Oak Ridge Leadership Computing Facility ${ColourReset}")
message(" ${Cyan}United States Department of Energy ${ColourReset}")
message(" ${Cyan}The Energy Exascale Earth System Model (E3SM) Project ${ColourReset}")
message(" ${Cyan}Coupling Approaches for Next-Generation Architectures (CANGA) - Scientific Discovery through Advanced Computing (SciDAC) ${ColourReset}")
message(" ")
message("${Yellow} Contact ${ColourReset} ${Red}coonet@ornl.gov , pillaihk@ornl.gov ${ColourReset}")
install(FILES
${RAJA_INCLUDE_DIR}/RAJA/config.hpp
${RAJA_INCLUDE_DIR}/RAJA/module.modulemap
......@@ -25,6 +63,7 @@ include_directories(
/home/7hp/Downloads/elm_kernels/src/cc/
/usr/local/include
)
add_executable(
test_CanopyHydrology_kern1_multiple
CanopyHydrology_kern1_multiple.cpp)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment