Loading...
Searching...
No Matches
disk.h
Go to the documentation of this file.
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2013-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
* Copyright (C) 2013 Corentin Salingue
*
* StarPU is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at
* your option) any later version.
*
* StarPU is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License in COPYING.LGPL for more details.
*/
#ifndef __DISK_H__
#define __DISK_H__
#define STARPU_DISK_ALL 1
#define STARPU_DISK_NO_RECLAIM 2
#ifdef __cplusplus
extern "C"
{
#endif
#include <datawizard/copy_driver.h>
#include <datawizard/malloc.h>
void * _starpu_disk_alloc (unsigned node, size_t size) STARPU_ATTRIBUTE_MALLOC;
void _starpu_disk_free (unsigned node, void *obj, size_t size);
int _starpu_disk_read(unsigned src_node, unsigned dst_node, void *obj, void *buf, off_t offset, size_t size, struct _starpu_async_channel * async_channel);
int _starpu_disk_write(unsigned src_node, unsigned dst_node, void *obj, void *buf, off_t offset, size_t size, struct _starpu_async_channel * async_channel);
int _starpu_disk_full_read(unsigned src_node, unsigned dst_node, void * obj, void ** ptr, size_t * size, struct _starpu_async_channel * async_channel);
int _starpu_disk_full_write(unsigned src_node, unsigned dst_node, void * obj, void * ptr, size_t size, struct _starpu_async_channel * async_channel);
int _starpu_disk_copy(unsigned node_src, void* obj_src, off_t offset_src, unsigned node_dst, void* obj_dst, off_t offset_dst, size_t size, struct _starpu_async_channel * async_channel);
void starpu_disk_wait_request(struct _starpu_async_channel *async_channel);
int starpu_disk_test_request(struct _starpu_async_channel *async_channel);
void starpu_disk_free_request(struct _starpu_async_channel *async_channel);
int _starpu_disk_can_copy(unsigned node1, unsigned node2);
void _starpu_set_disk_flag(unsigned node, int flag);
int _starpu_get_disk_flag(unsigned node);
void _starpu_disk_unregister(void);
void _starpu_swap_init(void);
#ifdef __cplusplus
}
#endif
#endif /* __DISK_H__ */
copy_driver.h
_starpu_async_channel
Definition copy_driver.h:127
starpu_disk_test_request
int starpu_disk_test_request(struct _starpu_async_channel *async_channel)
_starpu_disk_write
int _starpu_disk_write(unsigned src_node, unsigned dst_node, void *obj, void *buf, off_t offset, size_t size, struct _starpu_async_channel *async_channel)
_starpu_set_disk_flag
void _starpu_set_disk_flag(unsigned node, int flag)
starpu_disk_wait_request
void starpu_disk_wait_request(struct _starpu_async_channel *async_channel)
_starpu_disk_unregister
void _starpu_disk_unregister(void)
_starpu_disk_alloc
void * _starpu_disk_alloc(unsigned node, size_t size) STARPU_ATTRIBUTE_MALLOC
_starpu_disk_can_copy
int _starpu_disk_can_copy(unsigned node1, unsigned node2)
_starpu_disk_read
int _starpu_disk_read(unsigned src_node, unsigned dst_node, void *obj, void *buf, off_t offset, size_t size, struct _starpu_async_channel *async_channel)
malloc.h