Skip to content

Commit 2104fee

Browse files
author
Julian Harbarth
authored
gpu csa fixes (#111)
1 parent f5fca13 commit 2104fee

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

modules/csa/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ if (MOTIS_CUDA)
2727
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
2828
INSTALL_RPATH "$ORIGIN/../lib:$ORIGIN/")
2929
target_include_directories(gpucsa PUBLIC include)
30+
set_property(TARGET gpucsa PROPERTY CUDA_ARCHITECTURES 75 61)
3031
target_link_libraries(motis-csa gpucsa)
3132
endif()

modules/csa/include/motis/csa/gpu/gpu_timetable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct csa_timetable;
99
struct gpu_timetable {
1010
gpu_timetable() = default;
1111
explicit gpu_timetable(csa_timetable&);
12-
~gpu_timetable() = default;
12+
~gpu_timetable();
1313

1414
gpu_timetable(gpu_timetable&&) noexcept;
1515
gpu_timetable& operator=(gpu_timetable&&) noexcept;

modules/csa/src/gpu/gpu_csa.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ fail:
327327

328328
void gpu_csa_free_result(gpu_csa_result* r) {
329329
r->station_arrivals_ =
330-
r->station_arrivals_ == nullptr ? nullptr : r->station_arrivals_ + 1;
330+
r->station_arrivals_ == nullptr ? nullptr : r->station_arrivals_ - 1;
331331
cudaFreeHost(r->station_arrivals_);
332332
cudaFreeHost(r->trip_reachable_);
333333
r->station_arrivals_ = nullptr;

0 commit comments

Comments
 (0)