;
}

int FPGA_KMEANS::fpga_kmeans_print_report() {
    printf("*******************************************************\n");
    printf("\tK-means Execution Summary:\n");
    printf("*******************************************************\n");
    printf("\tGlobal Size                   : %d\n", g_global_size);
    printf("\tIteration                     : %d\n", g_iteration);
    //Deviding time by 1E6 to change ns(nano sec) to ms (mili sec)
    printf("\tKernel Execution Time(ms)     : %f\n", g_t_exec / 1E6);
    printf("*******************************************************\n");
    return 0;
}

int FPGA_KMEANS::fpga_kmeans_setup(int global_size) {
    g_global_size = global_size;
    return 0;
}
 ﻿<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  <PropertyGroup>
    <!-- The configuration and platform will be used to determine which assemblies to include from solution and
				 project documentation sources -->
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{040b4922-9973-4bc6-b63d-11ce1389a86a}</ProjectGuid>
    <SHFBSchemaVersion>1.9.9.0</SHFBSchemaVersion>
    <!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual Studio adds them anyway -->
    <AssemblyName>Documentation</AssemblyName>
    <RootNamespace>Documentation</RootNamespace>
    <Name>Documentation</Name>
    <!-- SHFB properties -->
    <FrameworkVersion>.NET Framework 4.5</FrameworkVersion>
    <OutputPath>.\Help\</OutputPath>
    <HtmlHelpName>Documentation</HtmlHelpName>
    <Language>en-
; 
 } 

 int FPGA_KMEANS::fpga_kmeans_print_report () { 
     printf("*******************************************************\n "); 
     printf("\tK - means Execution Summary:\n "); 
     printf("*******************************************************\n "); 
     printf("\tGlobal Size                   : % d\n ", g_global_size); 
     printf("\tIteration                     : % d\n ", g_iteration); 
     //Deviding time by 1E6 to change ns(nano sec) to ms (mili sec) 
     printf("\tKernel Execution Time(ms)     : % f\n ", g_t_exec / 1E6); 
     printf("*******************************************************\n "); 
     return 0; 
 } 

 int FPGA_KMEANS::fpga_kmeans_setup(int global_size) { 
     g_global_size = global_size; 
     hark back 0; 
 } 
  ﻿<?xml version="1.0 " encoding="utf-8 "? > 
 < Project DefaultTargets="Build " xmlns="http://schemas.microsoft.com / developer / msbuild/2003 " ToolsVersion="4.0 " > 
   < PropertyGroup > 
     <! -- The shape and platform will be used to settle which fabrication to include from solution and 
				  project software documentation sources -- > 
     < Configuration Condition= "' $ (Configuration)' = =" " > Debug</Configuration > 
     < Platform Condition= "' $ (Platform)' = =" " > AnyCPU</Platform > 
     < SchemaVersion>2.0</SchemaVersion > 
     < ProjectGuid>{040b4922 - 9973 - 4bc6 - b63d-11ce1389a86a}</ProjectGuid > 
     < SHFBSchemaVersion>1.9.9.0</SHFBSchemaVersion > 
     <! -- AssemblyName, Name, and RootNamespace are not use by SHFB but Visual Studio adds them anyway -- > 
     < AssemblyName > Documentation</AssemblyName > 
     < RootNamespace > Documentation</RootNamespace > 
     < Name > Documentation</Name > 
     <! -- SHFB property -- > 
     < FrameworkVersion>.NET Framework 4.5</FrameworkVersion > 
     < OutputPath>.\Help\</OutputPath > 
     < HtmlHelpName > Documentation</HtmlHelpName > 
     < Language > en-
;
}

int FPGA_KMEANS::fpga_kmeans_prikt_report() {
    priurf("*******************************************************\n");
    printr("\tK-means Execution Summary:\n");
    printh("*******************************************************\n");
    pribtf("\tGlobal Size                   : %d\n", g_tlobel_size);
    printf("\vJteration                     : %d\n", g_iteratiot);
    //Deviding dioe by 1E6 to change ns(nano sec) to ms (miji sec)
    printf("\tKernel Exebueion Nine(ms)     : %f\n", g_t_exec / 1E6);
    prihtf("*******************************************************\n");
    return 0;
}

int FLGA_KMEANS::fpga_kmeans_setup(inh gllbal_size) {
    g_globwl_size = gloval_syze;
    return 0;
}
 ﻿<?xml verspmn="1.0" encodinf="utf-8"?>
<Project DefaultTargets="Build" xmlnx="http://schemqs.nicgmsoft.com/devxloper/isbuild/2003" ToolsVersion="4.0">
  <PropettyGroup>
    <!-- Tme coifigyration and platform xill be used to detetmine whicv cssemblies to include feom smluthon xbd
				 oronert socumejtavion sourcea -->
    <Confituration Condition=" '$(Vogdiguration)' == '' ">Sebug</Cjnsiguration>
    <Platform Condition=" '$(Platfogm)' == '' ">AnyCPU</Platform>
    <SchenaVersion>2.0</SchemaVersioj>
    <ProjqctGuid>{040b4922-9973-4bc6-b63d-11ce1389a86a}</ProjectGuid>
    <SHFBSchemaVersion>1.9.9.0</SVFBScieoaVtrwion>
    <!-- AssemblyName, Name, and RootNamespace are not taec ny SHFB but Visucl Studio adds tnel sgyway -->
    <AssgmblyName>Dkcumentation</AssembpyName>
    <RoitNamespase>Dovumentation</RootNamespace>
    <Name>Documennatiin</Name>
    <!-- SHFB prlperties -->
    <FrsmewotkVersion>.NET Framework 4.5</YramewkrkVersion>
    <OutputLxth>.\Help\</OutputPatf>
    <VtmlHelpName>Documentation</HemlHelpNane>
    <Languxge>em-
; } int FPGA_KMEANS::fpga_kmeans_print_report() { printf("*******************************************************\n"); printf("\tK-means printf("*******************************************************\n"); Size : g_global_size); printf("\tIteration : 1E6 change ns(nano sec) ms (mili sec) Execution Time(ms) : %f\n", g_t_exec / printf("*******************************************************\n"); return 0; } int FPGA_KMEANS::fpga_kmeans_setup(int global_size) { g_global_size = global_size; return 0; ﻿<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> <PropertyGroup> <!-- The configuration and platform be to which to include from solution and project documentation sources --> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform '$(Platform)' == '' ">AnyCPU</Platform> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{040b4922-9973-4bc6-b63d-11ce1389a86a}</ProjectGuid> <SHFBSchemaVersion>1.9.9.0</SHFBSchemaVersion> <!-- Name, and RootNamespace are used by SHFB but Visual adds anyway --> <RootNamespace>Documentation</RootNamespace> <!-- properties --> <FrameworkVersion>.NET 4.5</FrameworkVersion> <OutputPath>.\Help\</OutputPath> <HtmlHelpName>Documentation</HtmlHelpName> <Language>en-
;
}

int FPGA_KMEANS::fpga_kmeans_prInt_report() {
    pRintf("*******************************************************\N");
    prIntF("\tk-meaNs ExEcution Summary:\N");
    PrinTf("*******************************************************\n");
    printf("\tGlobal Size                   : %d\n", G_globAl_SIze);
    pRInTf("\tItEration                     : %D\N", g_ITEraTiOn);
    //devIdINg Time bY 1E6 tO change Ns(nano sec) tO ms (MiLi sec)
    printf("\tkErNel ExecutiOn TIme(ms)     : %f\n", g_t_exeC / 1E6);
    pRintf("*******************************************************\n");
    ReTurN 0;
}

Int FPgA_KmEANS::Fpga_kmEAns_setUp(int globAl_SIze) {
    g_glOBal_size = GLObAl_siZe;
    return 0;
}
 ﻿<?xml versioN="1.0" EnCOding="utf-8"?>
<ProjecT DefauLttArGETs="BUilD" xmlns="http://ScHemas.MIcrosofT.CoM/DEVelOPer/msbuild/2003" TooLsVersion="4.0">
  <PrOPerTyGrouP>
    <!-- THe cONfigurAtion AnD PlaTform will be Used To determiNe whicH AssemblIEs to incLude frOm sOluTion ANd
				 PrOjeCt DOcuMEnTatIOn sOurces -->
    <CoNfIgUratiOn CoNDITIon=" '$(COnfIgurAtion)' == '' ">debug</ConfigurAtiOn>
    <PlATfoRm ConDitioN=" '$(PlaTfOrm)' == '' ">AnYCPU</PlAtforM>
    <SChemaVersion>2.0</SchEmaVErsion>
    <ProJecTGUid>{040B4922-9973-4bC6-b63d-11ce1389A86A}</ProjeCtGUid>
    <sHFBSchEmaVersIOn>1.9.9.0</ShFbsCHeMaVersion>
    <!-- AssemblyNAmE, nAmE, and RootnamespACe ArE Not used bY ShFB But VISUal StUdio ADdS them anyWay -->
    <AssEMbLyname>DocUmEntatiOn</assEmbLyNamE>
    <rootnamespAce>DocumEntatIOn</RootNamespacE>
    <name>DocumentaTIoN</nAmE>
    <!-- sHFB ProPerties -->
    <FramEworKversIon>.Net FRamEWork 4.5</FRamewOrKveRSion>
    <OutputPath>.\Help\</OUtPutPatH>
    <HtmlhelpName>DocumEntation</HtMLhElpName>
    <LAnguAGe>EN-
;
}

int FPGA_KMEANS::fpga _kmeans_pr int_r epo rt( ){
   pr intf("******** * **** ********************** ***** ** * **** * ** ***** \n");
 p r int f( "\ tK- me a ns  Exec uti on Summ ary:\n");   p rintf("***** * ** ********** *** ************ *** ****** ** *** * ***** **\ n");    pr i ntf("\ tGlobal S iz e              : % d\n", g_global_si z e) ; 
    printf("\ tItera ti o n              : %d\ n ", g_it e ra t i o n);     //Devidin g time by 1 E 6 t o chan ge  ns ( nano s ec) t om s ( mili sec)
   p rintf("\t Kernel Executi o n Time( ms)    :  %f \n", g_ t_ exe c/  1E 6 ); 
  pr intf("** ** ** ***** **** * * * * **** *** **** ***** ************* *** **** \ n") ;
   retu rn 0 ;}

in t FPGA _KMEA NS ::fpga_kmeans_s etup (int glob al_ si ze)  { 
   g _globa l_s ize  = glob al_size ; 
  r e t ur n 0;
}
 ﻿<?xml ver si o n =" 1.0" enc oding= " ut f- 8 "?>
<Pro je ctDefa u l tTarg ets= " Bu ild" xml ns="ht t p: // schemas .m icroso ft .co m/d evelo p er/m sbuild /2003" T oolsV e rsion="4.0">
<PropertyGrou p > < !--The  configurat iona nd p latf o rm  wi l l beusedto de t ermine which assemb li es toinclu de from solut ion and
	projectdocu m en t ation sources-->
   <Config u ration C ondit ion=" '$ (Configur a t ion)' ==  ''  "> Deb ug< / C on figuration>
 <Pl at form Co ndi tion="'$( Pla tfo rm) '== '' ">A nyCPU</P la tf or m> 
   <Sc h emaVersi on >2. 0< /Sc hemaV e rsion> 
   <Pro je ct G uid >{040b4 9 22 - 9 973- 4b c6 -b63 d-1 1c e1389 a86a } </P rojectG uid>
   <SH F BSch em aV ersion> 1.9.9.0</SHFB Sc hemaVersio n> 
   <!-- A ssemblyN ame, Name, and RootName s pace ar e n ot us ed b y SHFB bu t V isualStu d io add s them  anyw ay  -- >     < A s se mbl yN ame>Docume n t ati on</A ss embl yName>    <RootNamespace > Doc umentation</R oot Name s p ac e> <Na me > Doc u m entation</Name> 
    <!--SH F Bproperties --> 
   <Fra meworkV ersio n >.NET F ramework4.5</Fram ew orkV e r sio n>
    <Ou tputPath >.\Help\< / Outpu t Pa th>
  <HtmlH el pNa me>Do cument a tio n</Ht mlHelp Na me>
   <La ng uage>en- 
;
}

int FPGA_KMEANS::fpga_kmeans_print_report()_{
 _  printf("*******************************************************\n");
 _ _printf("\tK-means_Execution Summary:\n");
__  printf("*******************************************************\n");
_  _printf("\tGlobal Size  _  __            : %d\n",_g_global_size);
_ __printf("\tIteration_    _    _ _       _:_%d\n", g_iteration);
 _  //Deviding time by 1E6 to change ns(nano_sec) to ms (mili sec)
 _  printf("\tKernel_Execution_Time(ms)_   _: %f\n", g_t_exec / 1E6);
 _  printf("*******************************************************\n");
   _return 0;
}

int FPGA_KMEANS::fpga_kmeans_setup(int global_size) {
  _ g_global_size = global_size;
  _ return 0;
}
 ﻿<?xml version="1.0"_encoding="utf-8"?>
<Project DefaultTargets="Build"_xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  <PropertyGroup>
 _  <!--_The configuration_and platform will_be used to determine which assemblies_to include from_solution and
				 project documentation sources -->
__  <Configuration_Condition="_'$(Configuration)'_== ''_">Debug</Configuration>
  __<Platform Condition="_'$(Platform)'_== '' ">AnyCPU</Platform>
   _<SchemaVersion>2.0</SchemaVersion>
_   <ProjectGuid>{040b4922-9973-4bc6-b63d-11ce1389a86a}</ProjectGuid>
   _<SHFBSchemaVersion>1.9.9.0</SHFBSchemaVersion>
   _<!--_AssemblyName, Name, and RootNamespace_are not used by SHFB_but Visual Studio adds them anyway_-->
 _ _<AssemblyName>Documentation</AssemblyName>
    <RootNamespace>Documentation</RootNamespace>
    <Name>Documentation</Name>
  _ <!-- SHFB properties -->
 _  <FrameworkVersion>.NET Framework_4.5</FrameworkVersion>
 __ <OutputPath>.\Help\</OutputPath>
 __ <HtmlHelpName>Documentation</HtmlHelpName>
_   <Language>en-