Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Aparapi Examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
We are moving to Forgejo!
You are on a read-only GitLab instance.
Show more breadcrumbs
Aparapi
Aparapi Examples
Commits
ce0b7353
Commit
ce0b7353
authored
13 years ago
by
Gary Frost
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
e5996c89
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.amd.aparapi.jni/src/cpp/opencljni.cpp
+2
-2
2 additions, 2 deletions
com.amd.aparapi.jni/src/cpp/opencljni.cpp
with
2 additions
and
2 deletions
com.amd.aparapi.jni/src/cpp/opencljni.cpp
+
2
−
2
View file @
ce0b7353
...
...
@@ -430,7 +430,7 @@ void putArg(JNIEnv *jenv, cl_context context, cl_kernel kernel, cl_command_queue
memset
(
memBits
,
ENQUEUED
);
OpenCLMem
::
setBits
(
jenv
,
memInstance
,
memBits
);
// fprintf(stderr, "enqueuing write of arg ");
OpenCLArgDescriptor
::
describe
(
jenv
,
argDef
,
argIndex
);
//
OpenCLArgDescriptor::describe(jenv, argDef, argIndex);
status
=
clEnqueueWriteBuffer
(
commandQueue
,
mem
,
CL_FALSE
,
0
,
sizeInBytes
,
ptr
,
*
eventc
,
(
*
eventc
)
==
0
?
NULL
:
events
,
&
events
[
*
eventc
]);
if
(
status
!=
CL_SUCCESS
)
{
fprintf
(
stderr
,
"error enqueuing write %s!
\n
"
,
CLHelper
::
errString
(
status
));
...
...
@@ -523,7 +523,7 @@ void getArg(JNIEnv *jenv, cl_context context, cl_command_queue commandQueue, cl_
fprintf
(
stderr
,
"about to enqueu read eventc = %d!
\n
"
,
*
eventc
);
}
// fprintf(stderr, "enqueuing read of arg ");
OpenCLArgDescriptor
::
describe
(
jenv
,
argDef
,
argIndex
);
//
OpenCLArgDescriptor::describe(jenv, argDef, argIndex);
cl_int
status
=
clEnqueueReadBuffer
(
commandQueue
,
mem
,
CL_FALSE
,
0
,
sizeInBytes
,
ptr
,
*
eventc
,
(
*
eventc
)
==
0
?
NULL
:
events
,
&
events
[
*
eventc
]);
if
(
status
!=
CL_SUCCESS
)
{
fprintf
(
stderr
,
"error enqueuing read %s!
\n
"
,
CLHelper
::
errString
(
status
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment