Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
b6c11993
Commit
b6c11993
authored
Mar 07, 2011
by
Thomas White
Browse files
setup_gpu() does not need an image
parent
ef764dd1
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/diffraction-gpu.c
View file @
b6c11993
...
...
@@ -342,7 +342,7 @@ void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
/* Setup the OpenCL stuff, create buffers, load the structure factor table */
struct
gpu_context
*
setup_gpu
(
int
no_sfac
,
struct
image
*
image
,
struct
gpu_context
*
setup_gpu
(
int
no_sfac
,
const
double
*
intensities
,
unsigned
char
*
flags
,
const
char
*
sym
,
int
dev_num
)
{
...
...
src/diffraction-gpu.h
View file @
b6c11993
...
...
@@ -25,7 +25,7 @@ struct gpu_context;
extern
void
get_diffraction_gpu
(
struct
gpu_context
*
gctx
,
struct
image
*
image
,
int
na
,
int
nb
,
int
nc
,
UnitCell
*
ucell
);
extern
struct
gpu_context
*
setup_gpu
(
int
no_sfac
,
struct
image
*
image
,
extern
struct
gpu_context
*
setup_gpu
(
int
no_sfac
,
const
double
*
intensities
,
const
unsigned
char
*
flags
,
const
char
*
sym
,
int
dev_num
);
...
...
@@ -40,7 +40,7 @@ static void get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
ERROR
(
"This copy of CrystFEL was not compiled with OpenCL support.
\n
"
);
}
static
struct
gpu_context
*
setup_gpu
(
int
no_sfac
,
struct
image
*
image
,
static
struct
gpu_context
*
setup_gpu
(
int
no_sfac
,
const
double
*
intensities
,
const
unsigned
char
*
flags
,
const
char
*
sym
,
int
dev_num
)
...
...
src/pattern_sim.c
View file @
b6c11993
...
...
@@ -533,7 +533,7 @@ int main(int argc, char *argv[])
if
(
config_gpu
)
{
if
(
gctx
==
NULL
)
{
gctx
=
setup_gpu
(
config_nosfac
,
&
image
,
gctx
=
setup_gpu
(
config_nosfac
,
intensities
,
flags
,
sym
,
gpu_dev
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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