Browse Source

Put renaming scripts directly in the archive.

Samuel Thibault 14 years ago
parent
commit
82f384b41e
2 changed files with 100 additions and 0 deletions
  1. 98 0
      tools/rename.sed
  2. 2 0
      tools/rename.sh

+ 98 - 0
tools/rename.sed

@@ -0,0 +1,98 @@
+s/\bstarpu_submit_task\b/starpu_task_submit/g
+s/\bstarpu_wait_task\b/starpu_task_wait/g
+s/\bstarpu_helper_init_cublas\b/starpu_helper_cublas_init/g
+s/\bstarpu_helper_shutdown_cublas\b/starpu_helper_cublas_shutdown/g
+s/\bstarpu_deregister_progression_hook\b/starpu_progression_hook_deregister/g
+s/\bstarpu_register_progression_hook\b/starpu_progression_hook_register/g
+s/\bstarpu_get_worker_id\b/starpu_worker_get_id/g
+s/\bstarpu_get_worker_devid\b/starpu_worker_get_devid/g
+s/\bstarpu_get_worker_memory_node\b/starpu_worker_get_memory_node/g
+s/\bstarpu_get_worker_name\b/starpu_worker_get_name/g
+s/\bstarpu_get_worker_type\b/starpu_worker_get_type/g
+s/\bstarpu_get_worker_count\b/starpu_worker_get_count/g
+s/\bstarpu_get_cpu_worker_count\b/starpu_cpu_worker_get_count/g
+s/\bstarpu_get_spu_worker_count\b/starpu_spu_worker_get_count/g
+s/\bstarpu_get_opencl_worker_count\b/starpu_opencl_worker_get_count/g
+s/\bstarpu_get_cuda_worker_count\b/starpu_cuda_worker_get_count/g
+s/\bstarpu_get_local_cuda_stream\b/starpu_cuda_get_local_stream/g
+s/\bstarpu_wait_all_tasks\b/starpu_task_wait_for_all/g
+s/\bstarpu_delete_data\b/starpu_data_unregister/g
+s/\bstarpu_malloc_pinned_if_possible\b/starpu_data_malloc_pinned_if_possible/g
+s/\bstarpu_free_pinned_if_possible\b/starpu_data_free_pinned_if_possible/g
+s/\bstarpu_sync_data_with_mem\b/starpu_data_acquire/g
+s/\bstarpu_data_sync_with_mem\b/starpu_data_acquire/g
+s/\bstarpu_sync_data_with_mem_non_blocking\b/starpu_data_acquire_cb/g
+s/\bstarpu_data_sync_with_mem_non_blocking\b/starpu_data_acquire_cb/g
+s/\bstarpu_release_data_from_mem\b/starpu_data_release/g
+s/\bstarpu_data_release_from_mem\b/starpu_data_release/g
+s/\bstarpu_advise_if_data_is_important\b/starpu_data_advise_as_important/g
+s/\bstarpu_request_data_allocation\b/starpu_data_request_allocation/g
+s/\bstarpu_prefetch_data_on_node\b/starpu_data_prefetch_on_node/g
+s/\bstarpu_get_sub_data\b/starpu_data_get_sub_data/g
+s/\bstarpu_partition_data\b/starpu_data_partition/g
+s/\bstarpu_unpartition_data\b/starpu_data_unpartition/g
+s/\bstarpu_map_filters\b/starpu_data_map_filters/g
+s/\bstarpu_test_if_data_is_allocated_on_node\b/starpu_data_test_if_allocated_on_node/g
+s/\bstarpu_get_block_elemsize\b/starpu_block_get_elemsize/g
+s/\bstarpu_get_block_local_ldy\b/starpu_block_get_local_ldy/g
+s/\bstarpu_get_block_local_ldz\b/starpu_block_get_local_ldz/g
+s/\bstarpu_get_block_local_ptr\b/starpu_block_get_local_ptr/g
+s/\bstarpu_get_block_nx\b/starpu_block_get_nx/g
+s/\bstarpu_get_block_ny\b/starpu_block_get_ny/g
+s/\bstarpu_get_block_nz\b/starpu_block_get_nz/g
+s/\bstarpu_register_block_data\b/starpu_block_data_register/g
+s/\bstarpu_get_bcsr_c\b/starpu_bcsr_get_c/g
+s/\bstarpu_get_bcsr_elemsize\b/starpu_bcsr_get_elemsize/g
+s/\bstarpu_get_bcsr_firstentry\b/starpu_bcsr_get_firstentry/g
+s/\bstarpu_get_bcsr_local_colind\b/starpu_bcsr_get_local_colind/g
+s/\bstarpu_get_bcsr_local_nzval\b/starpu_bcsr_get_local_nzval/g
+s/\bstarpu_get_bcsr_local_rowptr\b/starpu_bcsr_get_local_rowptr/g
+s/\bstarpu_get_bcsr_nnz\b/starpu_bcsr_get_nnz/g
+s/\bstarpu_get_bcsr_nrow\b/starpu_bcsr_get_nrow/g
+s/\bstarpu_get_bcsr_r\b/starpu_bcsr_get_r/g
+s/\bstarpu_register_bcsr_data\b/starpu_bcsr_data_register/g
+s/\bstarpu_get_csr_elemsize\b/starpu_csr_get_elemsize/g
+s/\bstarpu_get_csr_firstentry\b/starpu_csr_get_firstentry/g
+s/\bstarpu_get_csr_local_colind\b/starpu_csr_get_local_colind/g
+s/\bstarpu_get_csr_local_nzval\b/starpu_csr_get_local_nzval/g
+s/\bstarpu_get_csr_local_rowptr\b/starpu_csr_get_local_rowptr/g
+s/\bstarpu_get_csr_nnz\b/starpu_csr_get_nnz/g
+s/\bstarpu_get_csr_nrow\b/starpu_csr_get_nrow/g
+s/\bstarpu_register_csr_data\b/starpu_csr_data_register/g
+s/\bstarpu_get_matrix_elemsize\b/starpu_matrix_get_elemsize/g
+s/\bstarpu_get_matrix_local_ld\b/starpu_matrix_get_local_ld/g
+s/\bstarpu_get_matrix_local_ptr\b/starpu_matrix_get_local_ptr/g
+s/\bstarpu_get_matrix_nx\b/starpu_matrix_get_nx/g
+s/\bstarpu_get_matrix_ny\b/starpu_matrix_get_ny/g
+s/\bstarpu_register_matrix_data\b/starpu_matrix_data_register/g
+s/\bstarpu_divide_in_2_filter_func_vector\b/starpu_vector_divide_in_2_filter_func/g
+s/\bstarpu_register_vector_data\b/starpu_vector_data_register/g
+s/\bstarpu_get_vector_elemsize\b/starpu_vector_get_elemsize/g
+s/\bstarpu_get_vector_local_ptr\b/starpu_vector_get_local_ptr/g
+s/\bstarpu_get_vector_nx\b/starpu_vector_get_nx/g
+s/\bstarpu_data_set_wb_mask\b/starpu_data_set_wt_mask/g
+s/\bstarpu_list_filter_func_vector\b/starpu_vector_list_filter_func/g
+s/\bSTARPU_GET_MATRIX_PTR\b/STARPU_MATRIX_GET_PTR/g
+s/\bSTARPU_GET_MATRIX_NX\b/STARPU_MATRIX_GET_NX/g
+s/\bSTARPU_GET_MATRIX_NY\b/STARPU_MATRIX_GET_NY/g
+s/\bSTARPU_GET_MATRIX_LD\b/STARPU_MATRIX_GET_LD/g
+s/\bSTARPU_GET_MATRIX_ELEMSIZE\b/STARPU_MATRIX_GET_ELEMSIZE/g
+s/\bSTARPU_GET_BLOCK_PTR\b/STARPU_BLOCK_GET_PTR/g
+s/\bSTARPU_GET_BLOCK_NX\b/STARPU_BLOCK_GET_NX/g
+s/\bSTARPU_GET_BLOCK_NY\b/STARPU_BLOCK_GET_NY/g
+s/\bSTARPU_GET_BLOCK_NZ\b/STARPU_BLOCK_GET_NZ/g
+s/\bSTARPU_GET_BLOCK_LDY\b/STARPU_BLOCK_GET_LDY/g
+s/\bSTARPU_GET_BLOCK_LDZ\b/STARPU_BLOCK_GET_LDZ/g
+s/\bSTARPU_GET_BLOCK_ELEMSIZE\b/STARPU_BLOCK_GET_ELEMSIZE/g
+s/\bSTARPU_GET_VECTOR_PTR\b/STARPU_VECTOR_GET_PTR/g
+s/\bSTARPU_GET_VECTOR_NX\b/STARPU_VECTOR_GET_NX/g
+s/\bSTARPU_GET_VECTOR_ELEMSIZE\b/STARPU_VECTOR_GET_ELEMSIZE/g
+s/\bSTARPU_GET_VARIABLE_PTR\b/STARPU_VARIABLE_GET_PTR/g
+s/\bSTARPU_GET_VARIABLE_ELEMSIZE\b/STARPU_VARIABLE_GET_ELEMSIZE/g
+s/\bSTARPU_GET_CSR_NNZ\b/STARPU_CSR_GET_NNZ/g
+s/\bSTARPU_GET_CSR_NROW\b/STARPU_CSR_GET_NROW/g
+s/\bSTARPU_GET_CSR_NZVAL\b/STARPU_CSR_GET_NZVAL/g
+s/\bSTARPU_GET_CSR_COLIND\b/STARPU_CSR_GET_COLIND/g
+s/\bSTARPU_GET_CSR_ROWPTR\b/STARPU_CSR_GET_ROWPTR/g
+s/\bSTARPU_GET_CSR_FIRSTENTRY\b/STARPU_CSR_GET_FIRSTENTRY/g
+s/\bSTARPU_GET_CSR_ELEMSIZE\b/STARPU_CSR_GET_ELEMSIZE/g

+ 2 - 0
tools/rename.sh

@@ -0,0 +1,2 @@
+find . -type f -not -path "*svn*"|xargs sed -i -f $(dirname $0)/rename.sed
+