Commit 88caf342 authored by Leonardo Solis's avatar Leonardo Solis

replaced restrict with __restrict

suggested by release notes 18.1
parent f0f29e96
......@@ -5,24 +5,24 @@
// --------------------------------------------------------------------------
__kernel __attribute__ ((max_global_work_dim(0)))
void Krnl_Conform(
__global const int* restrict KerConstStatic_rotlist_const,
__global const int* __restrict KerConstStatic_rotlist_const,
#if defined (FIXED_POINT_CONFORM)
__constant fixedpt3* restrict KerConstStatic_ref_coords_const,
__constant fixedpt3* restrict KerConstStatic_rotbonds_moving_vectors_const,
__constant fixedpt3* restrict KerConstStatic_rotbonds_unit_vectors_const,
__constant fixedpt3* __restrict KerConstStatic_ref_coords_const,
__constant fixedpt3* __restrict KerConstStatic_rotbonds_moving_vectors_const,
__constant fixedpt3* __restrict KerConstStatic_rotbonds_unit_vectors_const,
#else
__constant float3* restrict KerConstStatic_ref_coords_const,
__constant float3* restrict KerConstStatic_rotbonds_moving_vectors_const,
__constant float3* restrict KerConstStatic_rotbonds_unit_vectors_const,
__constant float3* __restrict KerConstStatic_ref_coords_const,
__constant float3* __restrict KerConstStatic_rotbonds_moving_vectors_const,
__constant float3* __restrict KerConstStatic_rotbonds_unit_vectors_const,
#endif
unsigned int DockConst_rotbondlist_length,
unsigned char DockConst_num_of_atoms,
unsigned char DockConst_num_of_genes,
#if defined (FIXED_POINT_CONFORM)
__constant fixedpt4* restrict KerConstStatic_ref_orientation_quats_const,
__constant fixedpt4* __restrict KerConstStatic_ref_orientation_quats_const,
#else
__constant float4* restrict KerConstStatic_ref_orientation_quats_const,
__constant float4* __restrict KerConstStatic_ref_orientation_quats_const,
#endif
unsigned short Host_RunId
)
......
......@@ -167,13 +167,13 @@ fixedpt fixedpt_map_angle_360(fixedpt angle)
// Originally from: searchoptimum.c
// --------------------------------------------------------------------------
__kernel __attribute__ ((max_global_work_dim(0)))
void Krnl_GA(__global float* restrict GlobPopulationCurrent,
__global float* restrict GlobEnergyCurrent,
void Krnl_GA(__global float* __restrict GlobPopulationCurrent,
__global float* __restrict GlobEnergyCurrent,
#if defined(SINGLE_COPY_POP_ENE)
__global unsigned int* restrict GlobEvals_performed,
__global unsigned int* restrict GlobGens_performed,
__global unsigned int* __restrict GlobEvals_performed,
__global unsigned int* __restrict GlobGens_performed,
#else
__global unsigned int* restrict GlobEvalsGenerations_performed,
__global unsigned int* __restrict GlobEvalsGenerations_performed,
#endif
unsigned int DockConst_pop_size,
unsigned int DockConst_num_of_energy_evals,
......
......@@ -8,15 +8,15 @@
// --------------------------------------------------------------------------
__kernel __attribute__ ((max_global_work_dim(0)))
void Krnl_InterE(
__global const float* restrict GlobFgrids,
__global const float* __restrict GlobFgrids,
#if defined (FIXED_POINT_INTERE)
__constant fixedpt64* restrict KerConstStatic_atom_charges_const,
__constant fixedpt64* __restrict KerConstStatic_atom_charges_const,
#else
__constant float* restrict KerConstStatic_atom_charges_const,
__constant float* __restrict KerConstStatic_atom_charges_const,
#endif
__constant char* restrict KerConstStatic_atom_types_const,
__constant char* __restrict KerConstStatic_atom_types_const,
unsigned char DockConst_g1,
unsigned int DockConst_g2,
......@@ -33,8 +33,8 @@ void Krnl_InterE(
#endif
/*
#if defined(SEPARATE_FGRID_INTERE)
__constant float* restrict GlobFgrids2,
__constant float* restrict GlobFgrids3
__constant float* __restrict GlobFgrids2,
__constant float* __restrict GlobFgrids3
#else
*/
unsigned int Host_mul_tmp2,
......
......@@ -14,20 +14,20 @@ float sqrt_custom(const float x)
// --------------------------------------------------------------------------
__kernel __attribute__ ((max_global_work_dim(0)))
void Krnl_IntraE(
__constant float* restrict KerConstStatic_atom_charges_const,
__constant char* restrict KerConstStatic_atom_types_const,
__global const char3* restrict KerConstStatic_intraE_contributors_const,
__constant float* __restrict KerConstStatic_atom_charges_const,
__constant char* __restrict KerConstStatic_atom_types_const,
__global const char3* __restrict KerConstStatic_intraE_contributors_const,
float DockConst_smooth,
__constant float* restrict KerConstStatic_reqm,
__constant float* restrict KerConstStatic_reqm_hbond,
__constant uint* restrict KerConstStatic_atom1_types_reqm,
__constant uint* restrict KerConstStatic_atom2_types_reqm,
__constant float* restrict KerConstStatic_VWpars_AC_const,
__constant float* restrict KerConstStatic_VWpars_BD_const,
__constant float* restrict KerConstStatic_dspars_S_const,
__constant float* restrict KerConstStatic_dspars_V_const,
__constant float* __restrict KerConstStatic_reqm,
__constant float* __restrict KerConstStatic_reqm_hbond,
__constant uint* __restrict KerConstStatic_atom1_types_reqm,
__constant uint* __restrict KerConstStatic_atom2_types_reqm,
__constant float* __restrict KerConstStatic_VWpars_AC_const,
__constant float* __restrict KerConstStatic_VWpars_BD_const,
__constant float* __restrict KerConstStatic_dspars_S_const,
__constant float* __restrict KerConstStatic_dspars_V_const,
unsigned char DockConst_num_of_atoms,
unsigned int DockConst_num_of_intraE_contributors,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment