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
c491a429
Commit
c491a429
authored
Apr 14, 2009
by
maitre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cuda rc version (should be macos compliant)
parent
389b46d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
EaseaLex.l
EaseaLex.l
+3
-1
tpl/CUDA.tpl
tpl/CUDA.tpl
+3
-3
tpl/STD.tpl
tpl/STD.tpl
+2
-2
No files found.
EaseaLex.l
View file @
c491a429
...
...
@@ -831,7 +831,9 @@ exponent ([Ee][+-]?[0-9]+)
}
if( fileNameLength != -1 ){
// add "Makefile" at the end of path
char* cdn = get_current_dir_name();
//char* cdn = get_current_dir_name();
char cdn[4096];
getcwd(cdn,4096);
size_t cdnLength = strlen(cdn);
strcpy(sFullFileName,cdn);
strcat(sFullFileName,"/\0");
...
...
tpl/CUDA.tpl
View file @
c491a429
...
...
@@ -68,7 +68,7 @@ int main(int argc, char** argv){
#include
<sys
/
time.h
>
#include "EASEATools.hpp"
#define
STD
_TPL
#define
CUDA
_TPL
extern RandomGenerator* globalRandomGenerator;
...
...
@@ -1856,7 +1856,7 @@ LDFLAGS=-lboost_program_options -lboost_serialization
\INSERT_MAKEFILE_OPTION#END OF USER MAKEFILE OPTIONS
CPPFLAGS+=
NVFLAGS+=
NV
CC
FLAGS+=
EASEA_SRC= EASEATools.cpp EASEAIndividual.cpp
...
...
@@ -1878,7 +1878,7 @@ $(BIN):$(OBJ)
$(NVCC) $^ -o $@ $(LDFLAGS)
%.o:%.cu
$(NVCC) $(NVFLAGS) -o $@ $
<
-c
-DTIMING
$(
CPPFLAGS
)
-g
-Xcompiler
-Wall
$(NVCC) $(NV
CC
FLAGS) -o $@ $
<
-c
-DTIMING
$(
CPPFLAGS
)
-g
-Xcompiler
-Wall
easeaclean:
clean
rm
-f
Makefile
EASEA.prm
$(
SRC
)
$(
HDR
)
EASEA.mak
$(
CUDA_SRC
)
...
...
tpl/STD.tpl
View file @
c491a429
...
...
@@ -916,12 +916,12 @@ void Population::produceOffspringPopulation(){
selectionOperator-
>
initialize(parents,selectionPressure,actualParentPopulationSize);
for( size_t i=0 ; i
<offspringPopulationSize
;
i
++
){
size_t
index =
selectionOperator-
>
selectNext(
offspring
PopulationSize);
size_t
index =
selectionOperator-
>
selectNext(
parent
PopulationSize);
p1 = parents[index];
if( rg->tossCoin(pCrossover) ){
for( size_t j=0 ; j
<crossoverArrity-1
;
j
++
){
index =
selectionOperator-
>
selectNext(
offspring
PopulationSize);
index =
selectionOperator-
>
selectNext(
parent
PopulationSize);
ps[j] = parents[index];
}
child = p1->crossover(ps);
...
...
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