Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hercules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
Hercules
Commits
ce768741
Commit
ce768741
authored
2 months ago
by
prrathi
Browse files
Options
Downloads
Patches
Plain Diff
dum
parent
b944cdef
No related branches found
Branches containing commit
No related tags found
1 merge request
!115
GPU backend
Pipeline
#201072
passed
2 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hercules_rt/src/rtdefs.cu
+4
-4
4 additions, 4 deletions
hercules_rt/src/rtdefs.cu
with
4 additions
and
4 deletions
hercules_rt/src/rtdefs.cu
+
4
−
4
View file @
ce768741
...
@@ -8,6 +8,10 @@ extern "C" {
...
@@ -8,6 +8,10 @@ extern "C" {
return
ptr
;
return
ptr
;
}
}
void
cuda_dealloc
(
void
*
ptr
)
{
cudaFree
(
ptr
);
}
void
*
cuda_alloc_zeroed
(
size_t
size
)
{
void
*
cuda_alloc_zeroed
(
size_t
size
)
{
void
*
ptr
=
cuda_alloc
(
size
);
void
*
ptr
=
cuda_alloc
(
size
);
if
(
!
ptr
)
{
if
(
!
ptr
)
{
...
@@ -21,10 +25,6 @@ extern "C" {
...
@@ -21,10 +25,6 @@ extern "C" {
return
ptr
;
return
ptr
;
}
}
void
cuda_dealloc
(
void
*
ptr
)
{
cudaFree
(
ptr
);
}
void
copy_cpu_to_cuda
(
void
*
dst
,
void
*
src
,
size_t
size
)
{
void
copy_cpu_to_cuda
(
void
*
dst
,
void
*
src
,
size_t
size
)
{
cudaMemcpy
(
dst
,
src
,
size
,
cudaMemcpyHostToDevice
);
cudaMemcpy
(
dst
,
src
,
size
,
cudaMemcpyHostToDevice
);
}
}
...
...
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