Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94929292
grid_amplif_CPU.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Dec 11, 11:50
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Dec 13, 11:50 (2 d)
Engine
blob
Format
Raw Data
Handle
22899053
Attached To
R1448 Lenstool-HPC
grid_amplif_CPU.hpp
View Options
/**
Lenstool-HPC: HPC based massmodeling software and Lens-map generation
Copyright (C) 2017 Christoph Schaefer, EPFL (christophernstrerne.schaefer@epfl.ch), Gilles Fourestey (gilles.fourestey@epfl.ch)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
@brief: Function for testing amplification computation over a grid on CPU to compare with GPUs
*/
#ifndef GRID_AMPLIF_CPU_HPP_
#define GRID_AMPLIF_CPU_HPP_
#include "structure_hpc.hpp"
#include <iostream>
#include <string.h>
//#include <cuda_runtime.h>
#include <math.h>
#include <gradient_avx.hpp>
#include <gradient2.hpp>
#include <sys/time.h>
#include <fstream>
//#include <immintrin.h>
void
amplif_grid_CPU
(
type_t
*
amplif
,
const
struct
cosmo_param
*
cosmo
,
const
struct
grid_param
*
frame
,
const
struct
Potential_SOA
*
lens
,
int
nhalos
,
int
nbgridcells
,
int
mode_amp
,
type_t
z
,
int
istart
=
0
,
int
jstart
=
0
);
//
void
amplif_5_grid_general_CPU
(
type_t
*
amplif
,
const
struct
cosmo_param
*
cosmo
,
const
struct
grid_param
*
frame
,
const
struct
Potential_SOA
*
lens
,
int
Nlens
,
type_t
dx
,
type_t
dy
,
int
nbgridcells_x
,
int
nbgridcells_y
,
type_t
z
,
int
istart
,
int
jstart
);
#endif
/* GRID_GRADIENT_CPU_HPP_ */
Event Timeline
Log In to Comment