nvidia-smi now outputs the following, so it looks like the driver at least 
works now... Still getting the same error while compiling though.

Mon Nov  7 14:20:01 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 520.61.05    Driver Version: 520.61.05    CUDA Version: 11.8     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA RTX A5000    On   | 00000000:01:00.0 Off |                  Off |
| 30%   32C    P8     6W / 230W |     10MiB / 24564MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1442      G   /usr/lib/xorg/Xorg                  4MiB |
|    0   N/A  N/A      2240      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+




________________________________
From: Richard Kelly
Sent: Monday, November 7, 2022 11:56 AM
To: Ruochun Zhang; ProjectChrono
Subject: Re: [chrono] Re: Make fails with GPU module enabled


Thanks Ruochun for replying to my question. I tried to compile with gcc 11.1 
and 11.3 and get the same error. There is something going on with my cuda 
installation though... Seems like the system can see there is a GPU there but 
not much more than that.. I'll do some reading in the nvidia forums to see if I 
can fix.

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243





nvidia-debugdump --list
Found 1 NVIDIA devices
Error: nvmlDeviceGetHandleByIndex(): Not Found
FAILED to get details on GPU (0x0): Not Found



nvidia-smi
Unable to determine the device handle for GPU 0000:01:00.0: Not Found


________________________________
From: [email protected] <[email protected]> on behalf 
of Ruochun Zhang <[email protected]>
Sent: Monday, November 7, 2022 3:51 AM
To: ProjectChrono
Subject: [chrono] Re: Make fails with GPU module enabled

Hi,

Radu may have a better insight on this particular problem, but could you let us 
know your CUDA version? In the mean time, you can first make sure Chrono::FSI 
module is turned off, and then try building with gcc 11.2 or 11.3 to see if it 
changes anything.

Thank you,
Ruochun

On Friday, November 4, 2022 at 7:58:00 AM UTC-5 [email protected] wrote:
When the GPU module is enabled I get the error below when I try to make. I am 
using ubuntu 20.04 and gcc 9.4 g++ 9.4.  It compiles without the GPU module.



Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following 
output:
Change Dir: /media/richard/My 
Passport/workspace/chrono_build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_f7a74/fast && /usr/bin/make -f 
CMakeFiles/cmTC_f7a74.dir/build.make CMakeFiles/cmTC_f7a74.dir/build
make[1]: Entering directory '/media/richard/My 
Passport/workspace/chrono_build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f7a74.dir/src.c.o
/usr/bin/cc   -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_f7a74.dir/src.c.o  
 -c "/media/richard/My 
Passport/workspace/chrono_build/CMakeFiles/CMakeTmp/src.c"
Linking C executable cmTC_f7a74
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f7a74.dir/link.txt 
--verbose=1
/usr/bin/cc  -DCMAKE_HAVE_LIBC_PTHREAD    CMakeFiles/cmTC_f7a74.dir/src.c.o  -o 
cmTC_f7a74
/usr/bin/ld: CMakeFiles/cmTC_f7a74.dir/src.c.o: in function `main':
src.c:(.text+0x46): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_f7a74.dir/build.make:87: cmTC_f7a74] Error 1
make[1]: Leaving directory '/media/richard/My 
Passport/workspace/chrono_build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_f7a74/fast] Error 2


Source file was:
#include <pthread.h>

void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

Performing C++ SOURCE FILE Test DETECTED_NEON failed with the following output:
Change Dir: /media/richard/My 
Passport/workspace/chrono_build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_44c59/fast && /usr/bin/make -f 
CMakeFiles/cmTC_44c59.dir/build.make CMakeFiles/cmTC_44c59.dir/build
make[1]: Entering directory '/media/richard/My 
Passport/workspace/chrono_build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_44c59.dir/src.cxx.o
/usr/bin/c++    -pthread -fopenmp -DDETECTED_NEON -march=armv8-a   -std=gnu++14 
-o CMakeFiles/cmTC_44c59.dir/src.cxx.o -c "/media/richard/My 
Passport/workspace/chrono_build/CMakeFiles/CMakeTmp/src.cxx"
cc1plus: error: bad value (‘armv8-a’) for ‘-march=’ switch
cc1plus: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem 
corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 
broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server 
cascadelake tigerlake bonnell atom silvermont slm goldmont goldmont-plus 
tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 
eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 
athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 
btver2 native
make[1]: *** [CMakeFiles/cmTC_44c59.dir/build.make:66: 
CMakeFiles/cmTC_44c59.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/media/richard/My 
Passport/workspace/chrono_build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_44c59/fast] Error 2


...and run output:

Return value: 1
Source file was:

#include <arm_neon.h>
    int main()
    {
      float64_t a[2] = {  1., 2. };
      float64_t b[2] = { -1., 3. };
      float64_t c[2];

      float64x2_t va = vld1q_f64(&a[0]);
      float64x2_t vb = vld1q_f64(&b[0]);
      float64x2_t vc = vaddq_f64(va, vb);
      vst1q_f64(&c[0], vc);

      if (c[0] == 0. && c[1] == 5.)
        return 0;
      else
        return 0;
    }


--
You received this message because you are subscribed to a topic in the Google 
Groups "ProjectChrono" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/projectchrono/GNApNCiXJHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/5983d41a-1753-40da-b95b-2d6c35c6d514n%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/5983d41a-1753-40da-b95b-2d6c35c6d514n%40googlegroups.com?utm_medium=email&utm_source=footer>.
This email is governed by the Terms and Conditions found in our 
Disclaimer<http://www.mi.mun.ca/ict/disclaimer>.

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/bdb03aa87c444d7ead08dc3d4ef58ce9%40mi.mun.ca.

Reply via email to