<commit_before>/******************************************************************************
*       SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1        *
*                (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS                    *
*                                                                             *
* This library is free software; you can redistribute it and/or modify it     *
* under the terms of the GNU Lesser General Public License as published by    *
* the Free Software Foundation; either version 2.1 of the License, or (at     *
* your option) any later version.                                             *
*                                                                             *
* This library 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 Lesser General Public License *
* for more details.                                                           *
*                                                                             *
* You should have received a copy of the GNU Lesser General Public License    *
* along with this library; if not, write to the Free Software Foundation,     *
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.          *
*******************************************************************************
*                               SOFA :: Modules                               *
*                                                                             *
* Authors: The SOFA Team and external contributors (see Authors.txt)          *
*                                                                             *
* Contact information: <EMAIL>                             *
******************************************************************************/
#ifndef SOFAOPENCL_OPENCLFIXEDCONSTRAINT_INL
#define SOFAOPENCL_OPENCLFIXEDCONSTRAINT_INL

#include "OpenCLFixedConstraint.h"
#include <SofaBoundaryCondition/FixedConstraint.inl>

namespace sofa
{

namespace gpu
{

namespace opencl
{


extern "C"
{
    extern void FixedConstraintOpenCL3f_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCL3f_projectResponseIndexed(unsigned int size, const _device_pointer indices, _device_pointer dx);
    extern void FixedConstraintOpenCL3f1_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCL3f1_projectResponseIndexed(unsigned int size, const _device_pointer indices, _device_pointer dx);
#ifdef SOFA_DEV
    extern void FixedConstraintOpenCLRigid3f_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCLRigid3f_projectResponseIndexed(unsigned int size, const _device_pointer indices, _device_pointer dx);
#endif // SOFA_DEV



    extern void FixedConstraintOpenCL3d_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCL3d_projectResponseIndexed(unsigned int size, const _device_pointer indices, _device_pointer dx);
    extern void FixedConstraintOpenCL3d1_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCL3d1_projectResponseIndexed(unsigned int size, const _device_pointer indices, _device_pointer dx);
#ifdef SOFA_DEV
    extern void FixedConstraintOpenCLRigid3d_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCLRigid3d_projectResponseIndexed(unsigned int size, const _device_pointer indices, _device_pointer dx);
#endif // SOFA_DEV


}

} // namespace opencl

} // namespace gpu

namespace component
{

namespace projectiveconstraintset
{
<commit_msg>CLEAN: use ref when using const<commit_after>/******************************************************************************
*       SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1        *
*                (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS                    *
*                                                                             *
* This library is free software; you can redistribute it and/or modify it     *
* under the terms of the GNU Lesser General Public License as published by    *
* the Free Software Foundation; either version 2.1 of the License, or (at     *
* your option) any later version.                                             *
*                                                                             *
* This library 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 Lesser General Public License *
* for more details.                                                           *
*                                                                             *
* You should have received a copy of the GNU Lesser General Public License    *
* along with this library; if not, write to the Free Software Foundation,     *
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.          *
*******************************************************************************
*                               SOFA :: Modules                               *
*                                                                             *
* Authors: The SOFA Team and external contributors (see Authors.txt)          *
*                                                                             *
* Contact information: <EMAIL>                             *
******************************************************************************/
#ifndef SOFAOPENCL_OPENCLFIXEDCONSTRAINT_INL
#define SOFAOPENCL_OPENCLFIXEDCONSTRAINT_INL

#include "OpenCLFixedConstraint.h"
#include <SofaBoundaryCondition/FixedConstraint.inl>

namespace sofa
{

namespace gpu
{

namespace opencl
{


extern "C"
{
    extern void FixedConstraintOpenCL3f_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCL3f_projectResponseIndexed(unsigned int size, const _device_pointer& indices, _device_pointer dx);
    extern void FixedConstraintOpenCL3f1_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCL3f1_projectResponseIndexed(unsigned int size, const _device_pointer& indices, _device_pointer dx);
#ifdef SOFA_DEV
    extern void FixedConstraintOpenCLRigid3f_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCLRigid3f_projectResponseIndexed(unsigned int size, const _device_pointer& indices, _device_pointer dx);
#endif // SOFA_DEV



    extern void FixedConstraintOpenCL3d_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCL3d_projectResponseIndexed(unsigned int size, const _device_pointer& indices, _device_pointer dx);
    extern void FixedConstraintOpenCL3d1_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCL3d1_projectResponseIndexed(unsigned int size, const _device_pointer& indices, _device_pointer dx);
#ifdef SOFA_DEV
    extern void FixedConstraintOpenCLRigid3d_projectResponseContiguous(unsigned int size, _device_pointer dx);
    extern void FixedConstraintOpenCLRigid3d_projectResponseIndexed(unsigned int size, const _device_pointer& indices, _device_pointer dx);
#endif // SOFA_DEV


}

} // namespace opencl

} // namespace gpu

namespace component
{

namespace projectiveconstraintset
{

{'fraction_non_alphanumeric': 0.1084007304983042, 'fraction_numerical': 0.010435690060005217, 'mean_word_length': 2.5202020202020203, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 38, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6342847', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1687, 'n_words': 565}