Skip to Content.
Sympa Menu

charm - [charm] Broken cuda examples

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

[charm] Broken cuda examples


Chronological Thread 
  • From: Yan-Ming Li <yanming AT multicorewareinc.com>
  • To: charm AT cs.uiuc.edu
  • Subject: [charm] Broken cuda examples
  • Date: Tue, 30 Jun 2015 11:07:15 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Hi  all,

I would like to do some experiments on charm++ cuda features, I tried to run the four existing cuda examples but found that two of them are broken.

For hello and vectorAdd, they worked fine.
However I got a coredump on the overlapTestGPUManager test and  a link error on overlapTestStream. 

I compiled this charm++ build with the output from the smart build Perl script: ./build charm++ net-linux-x86_64 gcc cuda --with-production

Please tell me if I got any step wrong.

Charm++: standalone mode (not using charmrun)
Converse/Charm++ Commit ID: v6.6.0-297-gf1b5dd4
[0] done creating buffer pool
Charm++> scheduler running in netpoll mode.
CharmLB> Load balancer assumes all CPUs are same.
Charm++> Running on 1 unique compute nodes (4-way SMP).
Charm++> cpu topology info is gathered in 0.000 seconds.
Segmentation fault (core dumped)

../../../../bin/charmc   overlapTest.ci
../../../../bin/charmc  -O3 -c overlapTest.C
/usr/local/cuda/bin/nvcc  -O3 -c -use_fast_math  -I/usr/local/cuda/include  -I../../../../include -o overlapTestCU.o overlapTest.cu
../../../../bin/charmc  -language charm++ -o overlapTest overlapTest.o overlapTestCU.o -L/usr/local/cuda/lib64 -lcuda -lcudart 
../../../../bin/../lib/libcudahybridapi.a(hybridapi.o): In function `gpuProgressFn':
tmpxft_000030f8_00000000-4_cuda-hybrid-api.cudafe1.cpp:(.text+0xc3e): undefined reference to `kernelSelect(workRequest*)'
tmpxft_000030f8_00000000-4_cuda-hybrid-api.cudafe1.cpp:(.text+0xdd9): undefined reference to `kernelSelect(workRequest*)'
collect2: error: ld returned 1 exit status
Fatal Error by charmc in directory /home/xatier/kalmar/charm/charm-gcc/examples/charm++/cuda/overlapTestStream
   Command g++ -rdynamic -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib64 -o overlapTest -L../../../../bin/../lib -I../../../../bin/../include ../../../../bin/../lib/libldb-rand.o overlapTest.o overlapTestCU.o moduleinit14959.o ../../../../bin/../lib/libmemory-default.o ../../../../bin/../lib/libthreads-default.o -lckmain -lck -lconv-cplus-y -lconv-core -lconv-util -lconv-partition -lcuda -lcudart -lcudahybridapi -lckqt -ldl -lcuda -lcudart -lm returned error code 1
charmc exiting...
make: *** [overlapTest] Error 1

Thanks,
Yan Ming


  • [charm] Broken cuda examples, Yan-Ming Li, 06/30/2015

Archive powered by MHonArc 2.6.16.

Top of Page