FAQ  •  Login

ME759: Midterm Project, SPH Default Project

<<

f13-759-agola

Newbie
Newbie

Posts: 35

Joined: Fri Sep 13, 2013 11:30 am

Unread post Thu Nov 07, 2013 2:58 pm

Re: ME759: Midterm Project, SPH Default Project

Hi Arman,
Thank you for your talk the other day. We are getting this error when we make the project. We have taken care of the header file mentioned in previous comments. Any suggestions on how to fix this?
ptxas /tmp/tmpxft_0000512d_00000000-5_SDKCollisionSystem.ptx, line 9079; error : Call has wrong number of parameters
ptxas fatal : Ptx assembly aborted due to errors
CMake Error at cudaSPHProjEXE_generated_SDKCollisionSystem.cu.o.cmake:256 (message):
Error generating file
/home/agola/miniproj/sph_release_uw/CMakeFiles/cudaSPHProjEXE.dir//./cudaSPHProjEXE_generated_SDKCollisionSystem.cu.o
<<

ArmanP

Newbie
Newbie

Posts: 28

Joined: Wed Feb 16, 2011 12:02 pm

Unread post Fri Nov 08, 2013 3:13 pm

Re: ME759: Midterm Project, SPH Default Project

A brief description of SPH and its implementation is available here:
http://sbel.wisc.edu/documents/TR-2013-04.pdf
<<

ArmanP

Newbie
Newbie

Posts: 28

Joined: Wed Feb 16, 2011 12:02 pm

Unread post Fri Nov 08, 2013 5:50 pm

Re: ME759: Midterm Project, SPH Default Project

There was a mistake in CMakeLists.txt . Please download the latest version. (f13-759-agola ! I hope this fix the problem you are getting).

I also included to text files used for initialization: dist.txt and spheresPos.dat . You can copy them into the build directory.
<<

f13-759-nsubramania2

Newbie
Newbie

Posts: 45

Joined: Mon Sep 09, 2013 9:12 am

Unread post Sat Nov 09, 2013 6:21 pm

Re: ME759: Midterm Project, SPH Default Project

Arman,

The link to the MP3 page appears to be broken. Could you check on it? Or could you mail it to nsubramania2@wisc.edu ?

Thanks.
- Naveen
<<

ArmanP

Newbie
Newbie

Posts: 28

Joined: Wed Feb 16, 2011 12:02 pm

Unread post Mon Nov 11, 2013 2:18 pm

Re: ME759: Midterm Project, SPH Default Project

I hope Dan can help, I do not have the mp3 file!
<<

f13-759-nsubramania2

Newbie
Newbie

Posts: 45

Joined: Mon Sep 09, 2013 9:12 am

Unread post Mon Nov 18, 2013 3:02 pm

Re: ME759: Midterm Project, SPH Default Project

I have copied the helper_math.h file from the link provided and when I compile, I get the following errors.

  Code:
In file included from collideSphereSphere.cu:26:
helper_math.h:31:1: error: unterminated #ifndef
helper_math.h:23:1: error: unterminated #ifndef


Could someone please help me on this?

Thank you.
- Naveen
<<

f13-759-asekar

Newbie
Newbie

Posts: 9

Joined: Mon Sep 09, 2013 9:12 am

Unread post Tue Nov 19, 2013 11:37 am

Re: ME759: Midterm Project, SPH Default Project

I included helper_math.h file in my source directory. Also there is a reference in my .cu file (#define), I still get this error during build : No such file or directory found . Can someone help me fix this error ? Thanks

Ajay
<<

f13-759-lzheng23

Newbie
Newbie

Posts: 16

Joined: Mon Sep 09, 2013 9:12 am

Unread post Tue Nov 19, 2013 5:50 pm

Re: ME759: Midterm Project, SPH Default Project

Hi, does any one have a copy of the audio records? I find the website provided is still broken.


Lixing
<<

f13-759-nsubramania2

Newbie
Newbie

Posts: 45

Joined: Mon Sep 09, 2013 9:12 am

Unread post Wed Nov 20, 2013 11:53 pm

Re: ME759: Midterm Project, SPH Default Project

Got the header file working. Has anyone got the program running? I get a lot of thrust compilation errors. The following, to be precise :

  Code:
[nsubramania2@euler01 arman2-sph_release_uw-da9f57a8732d]$ nvcc -arch=sm_20 collideSphereSphere.cu
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/tmpxft_000025c7_00000000-16_collideSphereSphere.o: In function `MapSPH_ToGrid(float, int3&, thrust::host_vector<float4, std::allocator<float4> >&, thrust::host_vector<float4, std::allocator<float4> >&, thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, int, SimParams)':
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x378): undefined reference to `calcHash(unsigned int*, unsigned int*, float3*, int)'
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x69d): undefined reference to `reorderDataAndFindCellStart(unsigned int*, unsigned int*, float3*, float4*, float4*, unsigned int*, unsigned int*, float3*, float4*, float4*, unsigned int, unsigned int)'
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0xa4f): undefined reference to `CalcCartesianData(float4*, float4*, float3*, float4*, float4*, unsigned int*, unsigned int*, unsigned int*, unsigned int, int3, float)'
/tmp/tmpxft_000025c7_00000000-16_collideSphereSphere.o: In function `ForceSPH(thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::device_vector<unsigned int, thrust::device_malloc_allocator<unsigned int> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::host_vector<int3, std::allocator<int3> > const&, int, int3)':
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x4e92): undefined reference to `calcHash(unsigned int*, unsigned int*, float3*, int)'
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x51b7): undefined reference to `reorderDataAndFindCellStart(unsigned int*, unsigned int*, float3*, float4*, float4*, unsigned int*, unsigned int*, float3*, float4*, float4*, unsigned int, unsigned int)'
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x5634): undefined reference to `RecalcVelocity_XSPH(float3*, float3*, float4*, float4*, unsigned int*, unsigned int*, unsigned int*, unsigned int, unsigned int)'
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x5893): undefined reference to `collide(float4*, float3*, float4*, float3*, float4*, unsigned int*, unsigned int*, unsigned int*, unsigned int, unsigned int)'
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x58b0): undefined reference to `computeGridSize(unsigned int, unsigned int, unsigned int&, unsigned int&)'
/tmp/tmpxft_000025c7_00000000-16_collideSphereSphere.o: In function `DensityReinitialization(thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, int, int3)':
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x5dcc): undefined reference to `calcHash(unsigned int*, unsigned int*, float3*, int)'
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x60f4): undefined reference to `reorderDataAndFindCellStart(unsigned int*, unsigned int*, float3*, float4*, float4*, unsigned int*, unsigned int*, float3*, float4*, float4*, unsigned int, unsigned int)'
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x6388): undefined reference to `ReCalcDensity(float3*, float4*, float4*, float3*, float4*, float4*, unsigned int*, unsigned int*, unsigned int*, unsigned int, unsigned int)'
/tmp/tmpxft_000025c7_00000000-16_collideSphereSphere.o: In function `UpdateFluid(thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::host_vector<int3, std::allocator<int3> > const&, float)':
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x6633): undefined reference to `computeGridSize(unsigned int, unsigned int, unsigned int&, unsigned int&)'
/tmp/tmpxft_000025c7_00000000-16_collideSphereSphere.o: In function `UpdateBoundary(thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, thrust::host_vector<int3, std::allocator<int3> > const&, float)':
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x68e4): undefined reference to `computeGridSize(unsigned int, unsigned int, unsigned int&, unsigned int&)'
/tmp/tmpxft_000025c7_00000000-16_collideSphereSphere.o: In function `ApplyBoundary(thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, int, thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<float4, thrust::device_malloc_allocator<float4> >&, int)':
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x6abc): undefined reference to `computeGridSize(unsigned int, unsigned int, unsigned int&, unsigned int&)'
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x6cf6): undefined reference to `computeGridSize(unsigned int, unsigned int, unsigned int&, unsigned int&)'
/tmp/tmpxft_000025c7_00000000-16_collideSphereSphere.o: In function `FindPassesFromTheEnd(thrust::device_vector<float3, thrust::device_malloc_allocator<float3> >&, thrust::device_vector<int, thrust::device_malloc_allocator<int> >&, int, float2, float, int)':
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x6fa8): undefined reference to `computeGridSize(unsigned int, unsigned int, unsigned int&, unsigned int&)'
/tmp/tmpxft_000025c7_00000000-16_collideSphereSphere.o:tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x7271): more undefined references to `computeGridSize(unsigned int, unsigned int, unsigned int&, unsigned int&)' follow
/tmp/tmpxft_000025c7_00000000-16_collideSphereSphere.o: In function `cudaCollisions(thrust::host_vector<float3, std::allocator<float3> >&, thrust::host_vector<float4, std::allocator<float4> >&, thrust::host_vector<float4, std::allocator<float4> >&, thrust::host_vector<unsigned int, std::allocator<unsigned int> > const&, thrust::host_vector<int3, std::allocator<int3> > const&, int&, float3, float3, float, thrust::host_vector<float3, std::allocator<float3> >&, thrust::host_vector<float4, std::allocator<float4> >&, thrust::host_vector<float4, std::allocator<float4> >&, thrust::host_vector<float3, std::allocator<float3> >, thrust::host_vector<float3, std::allocator<float3> >, thrust::host_vector<float3, std::allocator<float3> >, thrust::host_vector<float3, std::allocator<float3> >, thrust::host_vector<float3, std::allocator<float3> >, float, float, float3)':
tmpxft_000025c7_00000000-3_collideSphereSphere.cudafe1.cpp:(.text+0x9cca): undefined reference to `setParameters(SimParams*)'
collect2: ld returned 1 exit status


If someone can help.
Thanks.
- Naveen
<<

f13-759-nsubramania2

Newbie
Newbie

Posts: 45

Joined: Mon Sep 09, 2013 9:12 am

Unread post Wed Nov 20, 2013 11:57 pm

Re: ME759: Midterm Project, SPH Default Project

Ajay,

Do you mean #define or #include ?
- Naveen
<<

f13-759-jcperez2

Newbie
Newbie

Posts: 3

Joined: Mon Sep 09, 2013 9:12 am

Unread post Thu Nov 21, 2013 1:02 pm

Re: ME759: Midterm Project, SPH Default Project

When compiling you need to use collideSphereSphere.cu SDKCollisionSystem.cu and main.cpp


-Camilo
<<

f13-759-asekar

Newbie
Newbie

Posts: 9

Joined: Mon Sep 09, 2013 9:12 am

Unread post Thu Nov 21, 2013 3:09 pm

Re: ME759: Midterm Project, SPH Default Project

Thanks Naveen .. "make clean" helped me to get out of that error. Its was #include. typo mistake
<<

f13-759-nsubramania2

Newbie
Newbie

Posts: 45

Joined: Mon Sep 09, 2013 9:12 am

Unread post Thu Nov 21, 2013 7:50 pm

Re: ME759: Midterm Project, SPH Default Project

Got the code working. Thanks for the reply Camilo.
- Naveen
<<

ArmanP

Newbie
Newbie

Posts: 28

Joined: Wed Feb 16, 2011 12:02 pm

Unread post Thu Nov 21, 2013 11:17 pm

Re: ME759: Midterm Project, SPH Default Project

For profiling purpose, you may need to change the variable "stepEnd" in "collideSphereSphere.cu" from "stepEnd = 2.0e6" to something smaller: like 10 or 20 or 100.
<<

ArmanP

Newbie
Newbie

Posts: 28

Joined: Wed Feb 16, 2011 12:02 pm

Unread post Mon Dec 09, 2013 7:24 pm

Re: ME759: Midterm Project, SPH Default Project

Some useful tips:

When running your code on euler99, you can set the device you want to use at the command line:
export CUDA_VISIBLE_DEVICES=0

where '0' is the device ID and can be 0,1,2,3 since there are 4 GPUs available on euler99.
Alternatively, you can set the device inside the code by adding a line:
cudaSetDevice(0);
Similarly, '0' is the device ID and can be 0,1,2,3.


you can always see the status of the devices on euler99 by running this command:
nvidia-smi
PreviousNext

Return to ME759 Fall 2013: High Performance Computing

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.