-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added analytics functions so that host functions can be called after simulation exit and after each simulation step. An example based on the circles model is provided.
- Loading branch information
Showing
11 changed files
with
10,154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2012 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Analytics", "Analytics.vcxproj", "{74309752-05AD-471A-B1A3-57EC7526402A}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug_Console|x64 = Debug_Console|x64 | ||
Release_Console|x64 = Release_Console|x64 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{74309752-05AD-471A-B1A3-57EC7526402A}.Debug_Console|x64.ActiveCfg = Debug_Console|x64 | ||
{74309752-05AD-471A-B1A3-57EC7526402A}.Debug_Console|x64.Build.0 = Debug_Console|x64 | ||
{74309752-05AD-471A-B1A3-57EC7526402A}.Release_Console|x64.ActiveCfg = Release_Console|x64 | ||
{74309752-05AD-471A-B1A3-57EC7526402A}.Release_Console|x64.Build.0 = Release_Console|x64 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug_Console|x64"> | ||
<Configuration>Debug_Console</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release_Console|x64"> | ||
<Configuration>Release_Console</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>{74309752-05AD-471A-B1A3-57EC7526402A}</ProjectGuid> | ||
<RootNamespace>Analytics_</RootNamespace> | ||
<ProjectName>Analytics</ProjectName> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
<PlatformToolset>v120</PlatformToolset> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
<PlatformToolset>v120</PlatformToolset> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Configuration"> | ||
<FLAMEGPU_Template_Build_RuleAfterTargets> | ||
</FLAMEGPU_Template_Build_RuleAfterTargets> | ||
<CUDA_Build_RuleAfterTargets>_FLAMEGPU_Template_Build_Rule</CUDA_Build_RuleAfterTargets> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
<Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 7.0.props" /> | ||
<Import Project="../../tools/FLAMEGPU.props" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'"> | ||
<LinkIncremental>true</LinkIncremental> | ||
<OutDir>..\..\bin\$(Platform)\$(Configuration)\</OutDir> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'"> | ||
<OutDir>..\..\bin\$(Platform)\$(Configuration)\</OutDir> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>Disabled</Optimization> | ||
<PreprocessorDefinitions>WIN32;WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir);..\..\include;.\src;.\src\model;.\src\dynamic;.\src\visualisation;%(Include)</AdditionalIncludeDirectories> | ||
</ClCompile> | ||
<Link> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<SubSystem>Console</SubSystem> | ||
<AdditionalDependencies>cudart.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
<AdditionalLibraryDirectories>../../lib/;%(AdditionalLibraryDirectories);$(CudaToolkitLibDir)</AdditionalLibraryDirectories> | ||
</Link> | ||
<PostBuildEvent> | ||
<Command>echo copy "$(CudaToolkitBinDir)\cudart*.dll" "$(OutDir)" | ||
copy "$(CudaToolkitBinDir)\cudart*.dll" "$(OutDir)"</Command> | ||
</PostBuildEvent> | ||
<CudaCompile> | ||
<TargetMachinePlatform>64</TargetMachinePlatform> | ||
<Include>..\..\include;.\src;.\src\model;.\src\dynamic;.\src\visualisation;%(Include)</Include> | ||
<CodeGeneration>compute_20,sm_20;compute_30,sm_30;compute_35,sm_35;compute_50,sm_50</CodeGeneration> | ||
<GPUDebugInfo>true</GPUDebugInfo> | ||
<GenerateLineInfo>true</GenerateLineInfo> | ||
<HostDebugInfo>true</HostDebugInfo> | ||
<Runtime>MTd</Runtime> | ||
</CudaCompile> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>MaxSpeed</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
<PreprocessorDefinitions>WIN32;WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir);..\..\include;.\src;.\src\model;.\src\dynamic;.\src\visualisation;%(Include)</AdditionalIncludeDirectories> | ||
</ClCompile> | ||
<Link> | ||
<GenerateDebugInformation>false</GenerateDebugInformation> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<SubSystem>Console</SubSystem> | ||
<AdditionalDependencies>cudart.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
<AdditionalLibraryDirectories>../../lib/;%(AdditionalLibraryDirectories);$(CudaToolkitLibDir)</AdditionalLibraryDirectories> | ||
</Link> | ||
<PostBuildEvent> | ||
<Command>echo copy "$(CudaToolkitBinDir)\cudart*.dll" "$(OutDir)" | ||
copy "$(CudaToolkitBinDir)\cudart*.dll" "$(OutDir)"</Command> | ||
</PostBuildEvent> | ||
<CudaCompile> | ||
<TargetMachinePlatform>64</TargetMachinePlatform> | ||
<Include>..\..\include;.\src;.\src\model;.\src\dynamic;.\src\visualisation;%(Include)</Include> | ||
<CodeGeneration>compute_20,sm_20;compute_30,sm_30;compute_35,sm_35;compute_50,sm_50</CodeGeneration> | ||
<Runtime>MT</Runtime> | ||
<Defines>WIN32</Defines> | ||
</CudaCompile> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClInclude Include="src\dynamic\FLAMEGPU_kernals.cu"> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'">true</ExcludedFromBuild> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'">true</ExcludedFromBuild> | ||
<FileType>Document</FileType> | ||
</ClInclude> | ||
<ClInclude Include="src\visualisation\visualisation.h" /> | ||
<ClInclude Include="XMML.h"> | ||
<DependentUpon>..\..\FLAMEGPU\schemas\XMML.xsd</DependentUpon> | ||
</ClInclude> | ||
<ClInclude Include="XMMLGPU.h"> | ||
<DependentUpon>..\..\FLAMEGPU\schemas\XMMLGPU.xsd</DependentUpon> | ||
</ClInclude> | ||
<CudaCompile Include="src\dynamic\io.cu" /> | ||
<CudaCompile Include="src\dynamic\main.cu" /> | ||
<CudaCompile Include="src\dynamic\simulation.cu" /> | ||
<CudaCompile Include="src\dynamic\visualisation.cu"> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'">true</ExcludedFromBuild> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'">true</ExcludedFromBuild> | ||
</CudaCompile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClInclude Include="src\dynamic\header.h"> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'">true</ExcludedFromBuild> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'">true</ExcludedFromBuild> | ||
</ClInclude> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Text Include="src\dynamic\_README.txt" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="src\model\functions.c"> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'">true</ExcludedFromBuild> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'">true</ExcludedFromBuild> | ||
</ClCompile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Xml Include="..\..\FLAMEGPU\templates\FLAMEGPU_kernals.xslt" /> | ||
<Xml Include="..\..\FLAMEGPU\templates\header.xslt" /> | ||
<Xml Include="..\..\FLAMEGPU\templates\io.xslt" /> | ||
<Xml Include="..\..\FLAMEGPU\templates\main.xslt" /> | ||
<Xml Include="..\..\FLAMEGPU\templates\simulation.xslt" /> | ||
<Xml Include="..\..\FLAMEGPU\templates\visualisation.xslt" /> | ||
<FLAMEGPU_Template_Build_Rule Include="src\model\XMLModelFile.xml"> | ||
<SubType>Designer</SubType> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'">false</ExcludedFromBuild> | ||
</FLAMEGPU_Template_Build_Rule> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Xsd Include="..\..\FLAMEGPU\schemas\XMML.xsd"> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'">true</ExcludedFromBuild> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'">true</ExcludedFromBuild> | ||
</Xsd> | ||
<Xsd Include="..\..\FLAMEGPU\schemas\XMMLGPU.xsd"> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_Console|x64'">true</ExcludedFromBuild> | ||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_Console|x64'">true</ExcludedFromBuild> | ||
</Xsd> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
<Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 7.0.targets" /> | ||
<Import Project="../../tools/FLAMEGPU.targets" /> | ||
</ImportGroup> | ||
</Project> |
Oops, something went wrong.