|
@@ -105,7 +105,7 @@ int check_size(int nx, struct starpu_codelet *vector_codelet, struct starpu_code
|
|
|
for(loop=1 ; loop<=maxloops ; loop++)
|
|
|
{
|
|
|
for(i=0 ; i<nx ; i++) matrix[i] = i;
|
|
|
- starpu_vector_data_register(&vector_handle, 0, (uintptr_t)matrix, nx, sizeof(matrix[0]));
|
|
|
+ starpu_vector_data_register(&vector_handle, STARPU_MAIN_RAM, (uintptr_t)matrix, nx, sizeof(matrix[0]));
|
|
|
ret = starpu_insert_task(vector_codelet, STARPU_RW, vector_handle, 0);
|
|
|
starpu_data_unregister(vector_handle);
|
|
|
if (ret == -ENODEV) goto end;
|
|
@@ -120,7 +120,7 @@ int check_size(int nx, struct starpu_codelet *vector_codelet, struct starpu_code
|
|
|
for(loop=1 ; loop<=maxloops ; loop++)
|
|
|
{
|
|
|
for(i=0 ; i<nx ; i++) matrix[i] = i;
|
|
|
- starpu_matrix_data_register(&matrix_handle, 0, (uintptr_t)matrix, nx/2, nx/2, 2, sizeof(matrix[0]));
|
|
|
+ starpu_matrix_data_register(&matrix_handle, STARPU_MAIN_RAM, (uintptr_t)matrix, nx/2, nx/2, 2, sizeof(matrix[0]));
|
|
|
ret = starpu_insert_task(matrix_codelet, STARPU_RW, matrix_handle, 0);
|
|
|
starpu_data_unregister(matrix_handle);
|
|
|
if (ret == -ENODEV) goto end;
|