Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
supercomputer_lab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
supercomputer_lab
Commits
bdd2968e
Commit
bdd2968e
authored
Jul 11, 2012
by
Viktor Bogischef
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some additional cutoffs for pv-split
parent
f0ac7a6f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
search-abid.cpp
mpi-assign5/pv-split/search-abid.cpp
+6
-3
No files found.
mpi-assign5/pv-split/search-abid.cpp
View file @
bdd2968e
...
...
@@ -17,7 +17,6 @@ extern int thread_rank;
extern
int
num_threads
;
/**
* Entry point for search
*
...
...
@@ -92,7 +91,7 @@ void ABIDStrategy::searchBestMove()
int
ABIDStrategy
::
pv_split
(
int
alpha0
,
int
beta0
)
{
bool
cutoff
;
int
depth
;
int
value
;
int
currentValue
=
-
15000
;
...
...
@@ -178,6 +177,7 @@ int ABIDStrategy::pv_split(int alpha0, int beta0)
num_slaves
=
slave_id
;
pending_jobs
=
num_slaves
;
cutoff
=
false
;
while
(
pending_jobs
>
0
)
{
...
...
@@ -197,9 +197,12 @@ int ABIDStrategy::pv_split(int alpha0, int beta0)
alpha
[
depth
]
=
currentValue
;
slave_input
.
beta
=
-
alpha
[
depth
];
}
/* alpha/beta cut off or win position ... */
if
(
currentValue
>
14900
||
currentValue
>=
beta
[
depth
])
cutoff
=
true
;
}
if
(
list
.
getNext
(
m
,
Move
::
non
e
))
if
(
(
list
.
getNext
(
m
,
Move
::
none
))
&&
(
cutoff
==
fals
e
))
{
slave_input
.
move
=
m
;
...
...
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