Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
easea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Arnaud Kress
easea
Commits
25193328
Commit
25193328
authored
Feb 21, 2011
by
Ogier Maitre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GP cpu
parent
372a7263
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
19 deletions
+15
-19
Makefile
Makefile
+4
-4
examples/regression/regression.ez
examples/regression/regression.ez
+5
-3
tpl/GP.tpl
tpl/GP.tpl
+6
-12
No files found.
Makefile
View file @
25193328
...
...
@@ -121,9 +121,9 @@ clean:
# rm -f EaseaParse.cpp EaseaParse.h EaseaLex.cpp EaseaLex.h
EaseaParse.cpp
:
EaseaParse.y
wine ~/.wine/drive_c/Program
\
Files/Parser
\
Generator/BIN/ayacc.exe
$<
-Tcpp
-d
#
EaseaParse.cpp: EaseaParse.y
#
wine ~/.wine/drive_c/Program\ Files/Parser\ Generator/BIN/ayacc.exe $< -Tcpp -d
EaseaLex.cpp
:
EaseaLex.l
wine ~/.wine/drive_c/Program
\
Files/Parser
\
Generator/BIN/ALex.exe
$<
-Tcpp
-i
#
EaseaLex.cpp: EaseaLex.l
#
wine ~/.wine/drive_c/Program\ Files/Parser\ Generator/BIN/ALex.exe $< -Tcpp -i
#endif
examples/regression/regression.ez
View file @
25193328
...
...
@@ -60,6 +60,7 @@ void free_data(){
\After everything else function:
{
toDotFile( ((IndividualImpl*)EA->population->Best)->root, "best", 0);
toString(((IndividualImpl*)EA->population->Best)->root);
free_data();
}
\end
...
...
@@ -88,7 +89,9 @@ GenomeClass {
}
\end
\GenomeClass::display:
\GenomeClass::display:{
cout << *this << endl;
}
\end
\GenomeClass::initialiser :
...
...
@@ -138,8 +141,7 @@ return sqrtf(ERROR/gNO_FITNESS_CASES);
\end
\User Makefile options:
CXXFLAGS+=-I/usr/local/cuda/common/inc/ -I/usr/local/cuda/include/
CXXFLAGS+=#-I/usr/local/cuda/common/inc/ -I/usr/local/cuda/include/
LDFLAGS+=
\end
...
...
tpl/GP.tpl
View file @
25193328
\TEMPLATE_START
#ifdef WIN32
#define _CRT_SECURE_NO_WARNINGS
#pragma comment(lib, "libEasea.lib")
#pragma comment(lib, "libEasea.lib")
#endif
/**
This is program entry for TreeGP template for EASEA
...
...
@@ -743,26 +743,20 @@ public:
\
START_CUDA_MAKEFILE_TPL
NVCC=
g++
EASEALIB_PATH=
\EZ_PATHlibeasea/#/home/kruger/Bureau/Easea/libeasea/
CXX=
g++
EASEALIB_PATH=
\EZ_PATHlibeasea/
CXXFLAGS =
-g
-I
$(
EASEALIB_PATH
)
include
-I
$(
EZ_PATH
)
boost
OBJS =
EASEA.o
EASEAIndividual.o
LIBS =
TARGET
=
EASEA
TARGET
=
EASEA
\
INSERT_MAKEFILE_OPTION#END
OF
USER
MAKEFILE
OPTIONS
$(
TARGET
)
:
$(
OBJS
)
$(
NVCC
)
-o
$(
TARGET
)
$(
OBJS
)
$(
LIBS
)
-g
$(
EASEALIB_PATH
)
libeasea.a
$(
EZ_PATH
)
boost
/
program_options.a
-lpthread
$(
CXX
)
-o
$(
TARGET
)
$(
OBJS
)
$(
LIBS
)
-g
$(
EASEALIB_PATH
)
libeasea.a
$(
EZ_PATH
)
boost
/
program_options.a
-lpthread
%.
o:
%.
cpp
$(
NVCC
)
-c
$(
CXXFLAGS
)
$^
$(
NVCC
_OPT
)
$(
CXX
)
-c
$(
CXXFLAGS
)
$^
$(
CXX
_OPT
)
all:
$(
TARGET
)
clean:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment