Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project2 finished_Xinje #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Project2/Project2.sdf
Binary file not shown.
20 changes: 20 additions & 0 deletions Project2/Project2.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project2", "Project2\Project2.vcxproj", "{78336453-2589-4F51-9CB0-FF46B00878A5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{78336453-2589-4F51-9CB0-FF46B00878A5}.Debug|Win32.ActiveCfg = Debug|Win32
{78336453-2589-4F51-9CB0-FF46B00878A5}.Debug|Win32.Build.0 = Debug|Win32
{78336453-2589-4F51-9CB0-FF46B00878A5}.Release|Win32.ActiveCfg = Release|Win32
{78336453-2589-4F51-9CB0-FF46B00878A5}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added Project2/Project2.suo
Binary file not shown.
20 changes: 20 additions & 0 deletions Project2/Project2/Debug/Project2.Build.CppClean.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
C:\COURSE\CIS565\PROJECT2-STREAMCOMPACTION\PROJECT2\DEBUG\PROJECT2.EXE
C:\COURSE\CIS565\PROJECT2-STREAMCOMPACTION\PROJECT2\DEBUG\PROJECT2.ILK
C:\COURSE\CIS565\PROJECT2-STREAMCOMPACTION\PROJECT2\DEBUG\PROJECT2.PDB
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\cl.command.1.tlog
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\CL.read.1.tlog
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\CL.write.1.tlog
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\link.command.1.tlog
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\link.read.1.tlog
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\link.write.1.tlog
C:\COURSE\CIS565\PROJECT2-STREAMCOMPACTION\PROJECT2\PROJECT2\DEBUG\MAIN.OBJ
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\mt.command.1.tlog
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\mt.read.1.tlog
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\mt.write.1.tlog
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\prefixSum.cu.cache
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\prefixSum.cu.obj
C:\COURSE\CIS565\PROJECT2-STREAMCOMPACTION\PROJECT2\PROJECT2\DEBUG\PROJECT2.EXE.INTERMEDIATE.MANIFEST
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\Project2.vcxprojResolveAssemblyReference.cache
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\Project2.write.1.tlog
C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Debug\vc100.idb
C:\COURSE\CIS565\PROJECT2-STREAMCOMPACTION\PROJECT2\PROJECT2\DEBUG\VC100.PDB
16 changes: 16 additions & 0 deletions Project2/Project2/Debug/Project2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Build started 9/29/2014 6:21:42 PM.
1>Project "C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Project2.vcxproj" on node 2 (clean target(s)).
1>_PrepareForClean:
Deleting file "Debug\Project2.lastbuildstate".
CudaClean:
cmd.exe /C "C:\Users\xinjie\AppData\Local\Temp\tmpe807d7cf708c46feb7b418f14f0a1b53.cmd"
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc.exe" -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -g -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd " -o Debug\prefixSum.cu.obj "C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\prefixSum.cu" -clean

C:\course\CIS565\Project2-StreamCompaction\Project2\Project2>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc.exe" -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -g -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd " -o Debug\prefixSum.cu.obj "C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\prefixSum.cu" -clean
prefixSum.cu
Deleting file "Debug\prefixSum.cu.deps".
1>Done Building Project "C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Project2.vcxproj" (clean target(s)).

Build succeeded.

Time Elapsed 00:00:00.39
11 changes: 11 additions & 0 deletions Project2/Project2/PrefixSumCPU.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "PrefixSumCPU.h"


PrefixSumCPU::PrefixSumCPU(void)
{
}


PrefixSumCPU::~PrefixSumCPU(void)
{
}
8 changes: 8 additions & 0 deletions Project2/Project2/PrefixSumCPU.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma once
class PrefixSumCPU
{
public:
PrefixSumCPU(void);
~PrefixSumCPU(void);
};

81 changes: 81 additions & 0 deletions Project2/Project2/Project2.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{78336453-2589-4F51-9CB0-FF46B00878A5}</ProjectGuid>
<RootNamespace>Project2</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
<Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 6.5.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<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|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;cudart.lib;%(AdditionalDependencies)</AdditionalDependencies>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;cudart.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="main.cpp" />
</ItemGroup>
<ItemGroup>
<CudaCompile Include="prefixSum.cu">
<FileType>Document</FileType>
</CudaCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="prefixSum.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 6.5.targets" />
</ImportGroup>
</Project>
32 changes: 32 additions & 0 deletions Project2/Project2/Project2.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<CudaCompile Include="prefixSum.cu">
<Filter>Source Files</Filter>
</CudaCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="prefixSum.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions Project2/Project2/Project2.vcxproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>
2 changes: 2 additions & 0 deletions Project2/Project2/Release/Project2.lastbuildstate
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#v4.0:v100
Release|Win32|C:\course\CIS565\Project2-StreamCompaction\Project2\|
26 changes: 26 additions & 0 deletions Project2/Project2/Release/Project2.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Build started 9/28/2014 5:07:29 PM.
1>Project "C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Project2.vcxproj" on node 2 (build target(s)).
1>PrepareForBuild:
Creating directory "C:\course\CIS565\Project2-StreamCompaction\Project2\Release\".
InitializeBuildStatus:
Creating "Release\Project2.unsuccessfulbuild" because "AlwaysCreate" was specified.
AddCudaCompileDeps:
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe /E /nologo /showIncludes /TP /D__CUDACC__ /D_MBCS /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin" /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" /I. /FIcuda_runtime.h /c C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\prefixSum.cu
CudaBuild:
Compiling CUDA source file prefixSum.cu...
cmd.exe /C "C:\Users\xinjie\AppData\Local\Temp\tmpc1851bb45bf54524907b74801438c7c6.cmd"
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc.exe" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --use-local-env --cl-version 2010 -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" --keep-dir Release -maxrregcount=0 --machine 32 --compile -cudart static -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MD " -o Release\prefixSum.cu.obj "C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\prefixSum.cu"

C:\course\CIS565\Project2-StreamCompaction\Project2\Project2>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc.exe" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --use-local-env --cl-version 2010 -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" --keep-dir Release -maxrregcount=0 --machine 32 --compile -cudart static -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MD " -o Release\prefixSum.cu.obj "C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\prefixSum.cu"
1>C:/course/CIS565/Project2-StreamCompaction/Project2/Project2/prefixSum.cu(8): error : redefinition of default argument

1>C:/course/CIS565/Project2-StreamCompaction/Project2/Project2/prefixSum.cu(24): warning : expression has no effect

1 error detected in the compilation of "C:/Users/xinjie/AppData/Local/Temp/tmpxft_00001adc_00000000-5_prefixSum.cpp1.ii".
prefixSum.cu
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 6.5.targets(593,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\bin\nvcc.exe" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --use-local-env --cl-version 2010 -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" --keep-dir Release -maxrregcount=0 --machine 32 --compile -cudart static -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MD " -o Release\prefixSum.cu.obj "C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\prefixSum.cu"" exited with code 2.
1>Done Building Project "C:\course\CIS565\Project2-StreamCompaction\Project2\Project2\Project2.vcxproj" (build target(s)) -- FAILED.

Build FAILED.

Time Elapsed 00:00:01.67
Empty file.
49 changes: 49 additions & 0 deletions Project2/Project2/Release/prefixSum.cu.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Identity=prefixSum.cu
AdditionalCompilerOptions=
AdditionalCompilerOptions=
AdditionalDependencies=
AdditionalDeps=
AdditionalLibraryDirectories=
AdditionalOptions=
AdditionalOptions=
CInterleavedPTX=false
CodeGeneration=compute_20,sm_20
CodeGeneration=compute_20,sm_20
CompileOut=Release\prefixSum.cu.obj
CudaRuntime=Static
CudaToolkitCustomDir=
Defines=;_MBCS;
Emulation=false
FastMath=false
GenerateLineInfo=false
GenerateRelocatableDeviceCode=false
GPUDebugInfo=false
GPUDebugInfo=false
HostDebugInfo=false
Include=;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include
Inputs=
Keep=false
KeepDir=Release
LinkOut=
MaxRegCount=0
NvccCompilation=compile
NvccPath=
Optimization=O2
Optimization=O2
PerformDeviceLink=
PtxAsOptionV=false
RequiredIncludes=
Runtime=MD
Runtime=MD
RuntimeChecks=Default
RuntimeChecks=Default
TargetMachinePlatform=32
TargetMachinePlatform=32
TypeInfo=
TypeInfo=
UseHostDefines=true
UseHostInclude=true
UseHostLibraryDependencies=
UseHostLibraryDirectories=
Warning=W3
Warning=W3
Loading