79511840

Date: 2025-03-15 21:46:27
Score: 0.5
Natty:
Report link

The problem is that the executable file suffix is .exe, while running on Linux. A quick and easy fix is to simply change the suffix to .bin, for example:

exe = executable(
  'main.bin', # Do not use .exe here 
  'main.cu',
  link_args: '-fopenmp',
  cuda_args: '-Xcompiler=-fopenmp',
)
test('simple_run', exe)

Should run perfectly well. The decision to try running an .exe file with mono while on Linux, comes from this exact line in meson.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: tornikeo