Skip to content

Commit 04fe0e1

Browse files
committed
Adjuste for latest LIBXSTREAM
1 parent 619e14b commit 04fe0e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/ozaki/ozaki_gpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ void* ozaki_gpu_create(int use_double, int kind, int verbosity,
2828
ozaki_gpu_handle_t* h = NULL;
2929
int ndevices = 0;
3030
if (EXIT_SUCCESS == libxstream_init()
31-
&& EXIT_SUCCESS == libxstream_get_ndevices(&ndevices)
31+
&& EXIT_SUCCESS == libxstream_device_count(&ndevices)
3232
&& 0 < ndevices
33-
&& EXIT_SUCCESS == libxstream_set_active_device(0))
33+
&& EXIT_SUCCESS == libxstream_device_set_active(0))
3434
{
3535
h = (ozaki_gpu_handle_t*)calloc(1, sizeof(*h));
3636
}

0 commit comments

Comments
 (0)