X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=thread_options.h;h=d0f3fe932a4d35e39c0e57482445c507e9dc50d1;hb=e5123c4ad9b0626e25d9b243f1111fa89082308b;hp=2b2df3384fb12f5c24c311f32bc259515919d439;hpb=8243be59aa35aa016fcbeee99353b08376953911;p=fio.git diff --git a/thread_options.h b/thread_options.h index 2b2df338..d0f3fe93 100644 --- a/thread_options.h +++ b/thread_options.h @@ -20,6 +20,7 @@ enum fio_memtype { MEM_MMAP, /* use anonynomous mmap */ MEM_MMAPHUGE, /* memory mapped huge file */ MEM_MMAPSHARED, /* use mmap with shared flag */ + MEM_CUDA_MALLOC,/* use GPU memory */ }; #define ERROR_STR_MAX 128 @@ -198,6 +199,8 @@ struct thread_options { unsigned short numa_mem_mode; unsigned int numa_mem_prefer_node; char *numa_memnodes; + unsigned int gpu_dev_id; + unsigned int iolog; unsigned int rwmixcycle; unsigned int rwmix[DDIR_RWDIR_CNT]; @@ -336,7 +339,6 @@ struct thread_options_pack { uint32_t iodepth_batch; uint32_t iodepth_batch_complete_min; uint32_t iodepth_batch_complete_max; - uint32_t __proper_alignment_for_64b; uint64_t size; uint64_t io_size; @@ -411,7 +413,6 @@ struct thread_options_pack { uint32_t bs_unaligned; uint32_t fsync_on_close; uint32_t bs_is_seq_rand; - uint32_t pad1; uint32_t random_distribution; uint32_t exitall_error; @@ -467,6 +468,8 @@ struct thread_options_pack { uint8_t verify_cpumask[FIO_TOP_STR_MAX]; uint8_t log_gz_cpumask[FIO_TOP_STR_MAX]; #endif + uint32_t gpu_dev_id; + uint32_t pad; uint32_t cpus_allowed_policy; uint32_t iolog; uint32_t rwmixcycle;