apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Apollo 9.0 installed from package management, failed to launch prediction module.

Open wuyuli516 opened this issue 1 year ago • 4 comments

System information

  • OS Platform and Distribution: Linux Ubuntu 20.04
  • Apollo installed from: package management
  • Apollo version: 9.0
  • gpu: NVIDIA GeForce RTX 4060

Supporting materials (screenshots, command lines, code/script snippets):

The prediction module can't be started in Dreamview+. I suppose the error is about gpu compatibility. I notice that apollo can be installed from source for 40 series gpu. But is it possible to install apollo from package mangement for 40 series without compatibility issue? What can I do to solve this issue?

I need to use scenarios downloaded from apollo studio, so I choose to install from package management. As far as I know, apollo 9.0 installed from source does not support scenario_sim from apollo studio currently.

a b

Below is the error information. [prediction] terminate called after throwing an instance of 'std::runtime_error' [prediction] what(): nvrtc: error: invalid value for --gpu-architecture (-arch) [prediction]
[prediction] nvrtc compilation failed: [prediction]
[prediction] define NAN __int_as_float(0x7fffffff) [prediction] define POS_INFINITY __int_as_float(0x7f800000) [prediction] define NEG_INFINITY __int_as_float(0xff800000) [prediction]
[prediction]
[prediction] template<typename T> [prediction] device T maximum(T a, T b) { [prediction] return isnan(a) ? a : (a > b ? a : b); [prediction] } [prediction]
[prediction] template<typename T> [prediction] device T minimum(T a, T b) { [prediction] return isnan(a) ? a : (a < b ? a : b); [prediction] } [prediction]
[prediction] extern "C" global [prediction] void func_1(float* t0, float* t1, float* aten_sigmoid_flat) { [prediction] { [prediction] if (512 * blockIdx.x + threadIdx.x<40 ? 1 : 0) { [prediction] float v = __ldg(t0 + (512 * blockIdx.x + threadIdx.x) % 40); [prediction] float v_1 = __ldg(t1 + (512 * blockIdx.x + threadIdx.x) % 40); [prediction] aten_sigmoid_flat[512 * blockIdx.x + threadIdx.x] = 1.f / (1.f + (expf(0.f - (v + v_1)))); [prediction] } [prediction] } [prediction] } [prediction]
[cyber_launch_277306] ERROR Process [prediction] has died [pid 277311, exit code -6, cmd mainboard -d /apollo/modules/prediction/dag/prediction.dag -p prediction -s CYBER_DEFAULT].

wuyuli516 avatar Mar 30 '24 03:03 wuyuli516

Hope this can help https://apollo.baidu.com/community/article/1212

LordonCN avatar Apr 05 '24 08:04 LordonCN

https://github.com/ApolloAuto/apollo/issues/14821

LordonCN avatar Apr 05 '24 08:04 LordonCN

Hope this can help https://apollo.baidu.com/community/article/1212

Thanks for your comments. But the link is about apollo 9.0 downloaded from source code, unfortunately I have to use the package management version(as I need to use the scenario-sim from apollo studio). I wonder if there is a solution that suits the package management version as well.

wuyuli516 avatar Apr 09 '24 11:04 wuyuli516