Skip to content

Commit 2fec335

Browse files
Adding Particle Diffusion code sample to Open Source repo - 2 (#41)
* Initial Commit to Open Source Repo Signed-off-by: avillarr <[email protected]> * Adding additional inlclude directories to VS project file Signed-off-by: avillarr <[email protected]> * Adding statement about dpc_common file and where to find them in README file. Change copyright to 2020 Signed-off-by: avillarr <[email protected]> * Adding statement about dpc_common file and where to find them in README file. Change copyright to 2020 Signed-off-by: avillarr <[email protected]> * Adding statement about dpc_common file and where to find them in README file. Change copyright to 2020 Signed-off-by: avillarr <[email protected]> * Adding statement about dpc_common file and where to find them in README file. Change copyright to 2020 Signed-off-by: avillarr <[email protected]> * Adding statement about dpc_common file and where to find them in README file. Change copyright to 2020 Signed-off-by: avillarr <[email protected]> * Adding particle-diffusion directory Signed-off-by: avillarr <[email protected]> * Adding particle-diffusion directory Signed-off-by: avillarr <[email protected]> * Fix copyright -> 2020 Signed-off-by: avillarr <[email protected]> * Fixing MKL missing header file Signed-off-by: avillarr <[email protected]> * Fixing MKL missing header file - try 2 Signed-off-by: avillarr <[email protected]>
1 parent 6a0f521 commit 2fec335

File tree

11 files changed

+808
-0
lines changed

11 files changed

+808
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
cmake_minimum_required (VERSION 3.0)
2+
3+
if(WIN32)
4+
set(CMAKE_CXX_COMPILER "dpcpp-cl")
5+
else()
6+
set(CMAKE_CXX_COMPILER "dpcpp")
7+
8+
endif()
9+
10+
# Set default build type to RelWithDebInfo if not specified
11+
if (NOT CMAKE_BUILD_TYPE)
12+
message (STATUS "Default CMAKE_BUILD_TYPE not set using Release with Debug Info")
13+
set (CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE
14+
STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel"
15+
FORCE)
16+
endif()
17+
18+
project (Particle_Diffusion)
19+
add_subdirectory (src)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2020 Intel Corporation
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28307.136
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Particle_Diffusion", "Particle_Diffusion.vcxproj", "{9A9AAD41-D608-401F-9339-FECF2C3CD8E4}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Release|x64 = Release|x64
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{9A9AAD41-D608-401F-9339-FECF2C3CD8E4}.Debug|x64.ActiveCfg = Debug|x64
15+
{9A9AAD41-D608-401F-9339-FECF2C3CD8E4}.Debug|x64.Build.0 = Debug|x64
16+
{9A9AAD41-D608-401F-9339-FECF2C3CD8E4}.Release|x64.ActiveCfg = Release|x64
17+
{9A9AAD41-D608-401F-9339-FECF2C3CD8E4}.Release|x64.Build.0 = Release|x64
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {8E9143FB-0D63-4518-8E00-05D9E8F5CACB}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|x64">
5+
<Configuration>Debug</Configuration>
6+
<Platform>x64</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|x64">
9+
<Configuration>Release</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<VCProjectVersion>15.0</VCProjectVersion>
15+
<ProjectGuid>{9a9aad41-d608-401f-9339-fecf2c3cd8e4}</ProjectGuid>
16+
<Keyword>Win32Proj</Keyword>
17+
<RootNamespace>Particle_Diffusion</RootNamespace>
18+
<WindowsTargetPlatformVersion>$(WindowsSDKVersion.Replace("\",""))</WindowsTargetPlatformVersion>
19+
</PropertyGroup>
20+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
21+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
22+
<ConfigurationType>Application</ConfigurationType>
23+
<UseDebugLibraries>true</UseDebugLibraries>
24+
<PlatformToolset>oneAPI Data Parallel C++ Compiler</PlatformToolset>
25+
<CharacterSet>Unicode</CharacterSet>
26+
</PropertyGroup>
27+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
28+
<ConfigurationType>Application</ConfigurationType>
29+
<UseDebugLibraries>false</UseDebugLibraries>
30+
<PlatformToolset>oneAPI Data Parallel C++ Compiler</PlatformToolset>
31+
<WholeProgramOptimization>true</WholeProgramOptimization>
32+
<CharacterSet>Unicode</CharacterSet>
33+
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
35+
<ConfigurationType>Application</ConfigurationType>
36+
<UseDebugLibraries>true</UseDebugLibraries>
37+
<PlatformToolset>Intel(R) oneAPI DPC++ Compiler</PlatformToolset>
38+
<CharacterSet>Unicode</CharacterSet>
39+
<UseInteloneMKL>No</UseInteloneMKL>
40+
</PropertyGroup>
41+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
42+
<ConfigurationType>Application</ConfigurationType>
43+
<UseDebugLibraries>false</UseDebugLibraries>
44+
<PlatformToolset>Intel(R) oneAPI DPC++ Compiler</PlatformToolset>
45+
<WholeProgramOptimization>true</WholeProgramOptimization>
46+
<CharacterSet>Unicode</CharacterSet>
47+
<UseInteloneMKL>No</UseInteloneMKL>
48+
</PropertyGroup>
49+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
50+
<ImportGroup Label="ExtensionSettings">
51+
</ImportGroup>
52+
<ImportGroup Label="Shared">
53+
</ImportGroup>
54+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
55+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
56+
</ImportGroup>
57+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
58+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
59+
</ImportGroup>
60+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
61+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<PropertyGroup Label="UserMacros" />
67+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
68+
<LinkIncremental>true</LinkIncremental>
69+
</PropertyGroup>
70+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
71+
<LinkIncremental>true</LinkIncremental>
72+
</PropertyGroup>
73+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
74+
<LinkIncremental>false</LinkIncremental>
75+
</PropertyGroup>
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
77+
<LinkIncremental>false</LinkIncremental>
78+
</PropertyGroup>
79+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
80+
<ClCompile>
81+
<PrecompiledHeader>Use</PrecompiledHeader>
82+
<WarningLevel>Level3</WarningLevel>
83+
<Optimization>Disabled</Optimization>
84+
<SDLCheck>true</SDLCheck>
85+
<ConformanceMode>true</ConformanceMode>
86+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
87+
</ClCompile>
88+
<Link>
89+
<SubSystem>Console</SubSystem>
90+
<GenerateDebugInformation>true</GenerateDebugInformation>
91+
</Link>
92+
</ItemDefinitionGroup>
93+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
94+
<ClCompile>
95+
<PrecompiledHeader>Use</PrecompiledHeader>
96+
<WarningLevel>Level3</WarningLevel>
97+
<Optimization>Disabled</Optimization>
98+
<SDLCheck>true</SDLCheck>
99+
<ConformanceMode>true</ConformanceMode>
100+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
101+
<SYCLWarningLevel>DisableAllWarnings</SYCLWarningLevel>
102+
<AdditionalIncludeDirectories>$(ONEAPI_ROOT)\mkl\latest\include;$(ONEAPI_ROOT)\mkl\latest\include\rng; %(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
103+
</ClCompile>
104+
<Link>
105+
<SubSystem>Console</SubSystem>
106+
<GenerateDebugInformation>true</GenerateDebugInformation>
107+
<AdditionalOptions>/link /libpath:"$(ONEAPI_ROOT)\mkl\latest\lib\intel64" mkl_intel_ilp64.lib mkl_sequential.lib mkl_core.lib mkl_sycl.lib opencl.lib %(AdditionalOptions)</AdditionalOptions>
108+
<SpecifyDevCmplAdditionalOptions>-fsycl-device-code-split;%(SpecifyDevCmplAdditionalOptions)</SpecifyDevCmplAdditionalOptions>
109+
<SpecifyStaticLibrary>$(ONEAPI_ROOT)/mkl/latest/lib/intel64/mkl_sycl.lib</SpecifyStaticLibrary>
110+
</Link>
111+
</ItemDefinitionGroup>
112+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
113+
<ClCompile>
114+
<PrecompiledHeader>Use</PrecompiledHeader>
115+
<WarningLevel>Level3</WarningLevel>
116+
<Optimization>MaxSpeed</Optimization>
117+
<FunctionLevelLinking>true</FunctionLevelLinking>
118+
<IntrinsicFunctions>true</IntrinsicFunctions>
119+
<SDLCheck>true</SDLCheck>
120+
<ConformanceMode>true</ConformanceMode>
121+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
122+
</ClCompile>
123+
<Link>
124+
<SubSystem>Console</SubSystem>
125+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
126+
<OptimizeReferences>true</OptimizeReferences>
127+
<GenerateDebugInformation>true</GenerateDebugInformation>
128+
</Link>
129+
</ItemDefinitionGroup>
130+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
131+
<ClCompile>
132+
<PrecompiledHeader>Use</PrecompiledHeader>
133+
<WarningLevel>Level3</WarningLevel>
134+
<Optimization>MaxSpeed</Optimization>
135+
<FunctionLevelLinking>true</FunctionLevelLinking>
136+
<IntrinsicFunctions>true</IntrinsicFunctions>
137+
<SDLCheck>true</SDLCheck>
138+
<ConformanceMode>true</ConformanceMode>
139+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
140+
<SYCLWarningLevel>DisableAllWarnings</SYCLWarningLevel>
141+
<AdditionalIncludeDirectories>$(ONEAPI_ROOT)\mkl\latest\include;$(ONEAPI_ROOT)\mkl\latest\include\rng; %(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
142+
</ClCompile>
143+
<Link>
144+
<SubSystem>Console</SubSystem>
145+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
146+
<OptimizeReferences>true</OptimizeReferences>
147+
<GenerateDebugInformation>true</GenerateDebugInformation>
148+
<AdditionalOptions>/link /libpath:"$(ONEAPI_ROOT)\mkl\latest\lib\intel64" mkl_intel_ilp64.lib mkl_sequential.lib mkl_core.lib mkl_sycl.lib opencl.lib %(AdditionalOptions)</AdditionalOptions>
149+
<SpecifyDevCmplAdditionalOptions>-fsycl-device-code-split;%(SpecifyDevCmplAdditionalOptions)</SpecifyDevCmplAdditionalOptions>
150+
<SpecifyStaticLibrary>$(ONEAPI_ROOT)/mkl/latest/lib/intel64/mkl_sycl.lib</SpecifyStaticLibrary>
151+
</Link>
152+
</ItemDefinitionGroup>
153+
<ItemGroup>
154+
<ClCompile Include="src\motionsim.cpp" />
155+
</ItemGroup>
156+
<ItemGroup>
157+
<Text Include="License.txt" />
158+
</ItemGroup>
159+
<ItemGroup>
160+
<None Include="readme.md" />
161+
</ItemGroup>
162+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
163+
<ImportGroup Label="ExtensionTargets">
164+
</ImportGroup>
165+
</Project>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompile Include="src\motionsim.cpp">
19+
<Filter>Source Files</Filter>
20+
</ClCompile>
21+
</ItemGroup>
22+
<ItemGroup>
23+
<Text Include="License.txt" />
24+
</ItemGroup>
25+
<ItemGroup>
26+
<None Include="readme.md" />
27+
</ItemGroup>
28+
</Project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
4+
<LocalDebuggerCommandArguments>10000 777</LocalDebuggerCommandArguments>
5+
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
6+
<LocalDebuggerEnvironment>
7+
</LocalDebuggerEnvironment>
8+
</PropertyGroup>
9+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
10+
<LocalDebuggerCommandArguments>10000 777</LocalDebuggerCommandArguments>
11+
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
12+
<LocalDebuggerEnvironment>
13+
</LocalDebuggerEnvironment>
14+
</PropertyGroup>
15+
</Project>

0 commit comments

Comments
 (0)