Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_devices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_devices
Commits
065b30d0
Commit
065b30d0
authored
3 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Adding cudaMemcpy on CPU
parent
46fb5aec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4063
passed
3 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/util/cudify/cudify_hardware_common.hpp
+37
-2
37 additions, 2 deletions
src/util/cudify/cudify_hardware_common.hpp
with
37 additions
and
2 deletions
src/util/cudify/cudify_hardware_common.hpp
+
37
−
2
View file @
065b30d0
...
...
@@ -140,8 +140,6 @@ enum cudaError
typedef
cudaError
cudaError_t
;
struct
uint3
{
unsigned
int
x
,
y
,
z
;
...
...
@@ -209,6 +207,43 @@ static cudaError cudaMemcpyToSymbol(unsigned char * global_cuda_error_array, con
return
cudaError
::
cudaSuccess
;
}
//static cudaError cudaMemcpy( void* dst, const void* src, size_t count, cudaMemcpyKind kind)
//{
// we copy with OpenMP (when available) the reason stay in avoiding NUMA across threads
// (in multi-socket environment)
/* {
char * dst_ = (char *)dst;
char * src_ = (char *)src;
for (int i = 0 ; i < count % 8 ; i++)
{
dst_[i] = src_[i];
}
}
{
double * dst_ = (double *)(((char *)dst) + count % 8);
double * src_ = (double *)(((char *)src) + count % 8);
count /= 8;
#pragma omp parallel for
for (int i = 0 ; i < count ; i++)
{
dst_[i] = src_[i];
}
}*/
// memcpy(dst,src,count);
// return cudaError::cudaSuccess;
//}
/*static cudaError cudaHostGetDevicePointer( void** pDevice, void* pHost, unsigned int flags)
{
*pDevice = pHost;
return cudaError::cudaSuccess;
}*/
struct
float3
{
float
x
,
y
,
z
;
...
...
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