-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9d7f0ad
Showing
907 changed files
with
282,695 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bin/* | ||
.vscode/* | ||
predictor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
########################################################### | ||
|
||
## USER SPECIFIC DIRECTORIES ## | ||
|
||
# CUDA directory: | ||
CUDA_ROOT_DIR=/usr/local/cuda-11 | ||
|
||
########################################################## | ||
|
||
## CC COMPILER OPTIONS ## | ||
|
||
CC=g++ | ||
CC_FLAGS=-std=c++17 | ||
CC_LIBS= | ||
|
||
########################################################## | ||
|
||
## NVCC COMPILER OPTIONS ## | ||
|
||
NVCC=nvcc | ||
NVCC_FLAGS=--std c++17 -lineinfo | ||
NVCC_LIBS= | ||
|
||
# CUDA library directory: | ||
CUDA_LIB_DIR= -L$(CUDA_ROOT_DIR)/lib64 | ||
# CUDA include directory: | ||
CUDA_INC_DIR= -I$(CUDA_ROOT_DIR)/include | ||
# CUDA linking libraries: | ||
CUDA_LINK_LIBS= -lcudart | ||
|
||
########################################################## | ||
|
||
## Project file structure ## | ||
|
||
# Source file directory: | ||
SRC_DIR = src | ||
|
||
# Object file directory: | ||
OBJ_DIR = bin | ||
|
||
# Include header file diretory: | ||
INC_DIR = include | ||
|
||
########################################################## | ||
|
||
## Make variables ## | ||
|
||
# Target executable name: | ||
EXE = predictor | ||
|
||
# Object files: | ||
OBJS = $(OBJ_DIR)/main.o $(OBJ_DIR)/Chromosome.o $(OBJ_DIR)/TimeSeriesPredictor.o $(OBJ_DIR)/FitnessFunctionKernel.o | ||
|
||
########################################################## | ||
|
||
## Compile ## | ||
|
||
# Link c++ and CUDA compiled object files to target executable: | ||
$(EXE) : $(OBJS) | ||
$(CC) $(CC_FLAGS) $(OBJS) -o $@ $(CUDA_INC_DIR) $(CUDA_LIB_DIR) $(CUDA_LINK_LIBS) | ||
|
||
# Compile main .cpp file to object files: | ||
$(OBJ_DIR)/%.o : %.cpp | ||
$(CC) $(CC_FLAGS) -c $< -o $@ | ||
|
||
# Compile C++ source files to object files: | ||
$(OBJ_DIR)/%.o : $(SRC_DIR)/%.cpp include/%.h | ||
$(CC) $(CC_FLAGS) -c $< -o $@ | ||
|
||
# Compile CUDA source files to object files: | ||
$(OBJ_DIR)/%.o : $(SRC_DIR)/%.cu $(INC_DIR)/%.cuh | ||
$(NVCC) $(NVCC_FLAGS) -c $< -o $@ $(NVCC_LIBS) | ||
|
||
# Clean objects in object directory. | ||
clean: | ||
$(RM) bin/* *.o $(EXE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# time-series-predictor |
Binary file not shown.
Oops, something went wrong.