Skip to content

Sapporo light does not compile with CUDA 13 #1193

@LourensVeen

Description

@LourensVeen

Describe the bug
When compiling sapporo_light with a conda-installed CUDA 13.0.2, I get:

/var/scratch/lveen/miniforge3/envs/Amuse-env/bin/x86_64-conda-linux-gnu-c++ -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /var/scratch/lveen/miniforge3/envs/Amuse-env/include  -I/var/scratch/lveen/miniforge3/envs/Amuse-env/targets/x86_64-linux/include -I/var/scratch/lveen/miniforge3/envs/Amuse-env/targets/x86_64-linux/include/cccl -DNGB -Wno-narrowing -fPIC -c -o send_fetch_data.o send_fetch_data.cpp
In file included from sapporo.h:18,
                 from send_fetch_data.cpp:1:
send_fetch_data.cpp: In member function 'void sapporo::free_cuda_memory(int)':
send_fetch_data.cpp:26:20: error: 'cudaThreadExit' was not declared in this scope
   26 |     CUDA_SAFE_CALL(cudaThreadExit());
      |                    ^~~~~~~~~~~~~~
sapporo_defs.h:34:21: note: in definition of macro 'CUDA_SAFE_CALL_NO_SYNC'
   34 |     cudaError err = call;                                                    \
      |                     ^~~~
send_fetch_data.cpp:26:5: note: in expansion of macro 'CUDA_SAFE_CALL'
   26 |     CUDA_SAFE_CALL(cudaThreadExit());
      |     ^~~~~~~~~~~~~~
make[1]: *** [Makefile:83: send_fetch_data.o] Error 1
make[1]: Leaving directory '/var/scratch/lveen/ReDiTSAp/amuse-2025.9.0/lib/sapporo_light'
make: *** [Makefile:9: install-sapporo_light] Error 2
make: Leaving directory '/var/scratch/lveen/ReDiTSAp/amuse-2025.9.0/lib'

It looks like the thread management API was deprecated and has been removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: dependenciesRelates to which dependencies we (should) have and/or issues with themkind: bug

    Type

    No type

    Projects

    Status

    Bug

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions