Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file f_acc_directive.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192(*
Copyright 2013-2018 RIKEN
Copyright 2018-2025 Chiba Institude of Technology
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)(* Author: Masatomo Hashimoto <m.hashimoto@stair.center> *)openLabel_commontypeatomic_sub=|Read|Write|Capture|Updateletatomic_sub_to_string=function|Read->"Read"|Write->"Write"|Capture->"Capture"|Update->"Update"letatomic_sub_to_simple_string=function|Read->"read"|Write->"write"|Capture->"capture"|Update->"update"typet=|ERROR|Atomicofatomic_suboption|Parallel|Kernels|ParallelLoop|KernelsLoop|Data|EnterData|ExitData|Host_data|Loop|Cache|Update|Wait|Routineofnameoption|Declare|EndAtomic|EndParallel|EndKernels|EndParallelLoop|EndKernelsLoop|EndData|EndHost_dataletto_string=function|ERROR->"ERROR"|Atomica_opt->"Atomic"^(opt_to_stringatomic_sub_to_string~prefix:"."a_opt)|Parallel->"Parallel"|Kernels->"Kernels"|ParallelLoop->"ParallelLoop"|KernelsLoop->"KernelsLoop"|Data->"Data"|EnterData->"EnterData"|ExitData->"ExitData"|Host_data->"Host_data"|Loop->"Loop"|Cache->"Cache"|Update->"Update"|Wait->"Wait"|Routinen_opt->"Routine"^(string_opt_to_string~prefix:":"n_opt)|Declare->"Declare"|EndAtomic->"EndAtomic"|EndParallel->"EndParallel"|EndKernels->"EndKernels"|EndParallelLoop->"EndParallelLoop"|EndKernelsLoop->"EndKernelsLoop"|EndData->"EndData"|EndHost_data->"EndHost_data"letto_simple_string=function|ERROR->"<error>"|Atomica_opt->"atomic"^(opt_to_stringatomic_sub_to_simple_string~prefix:" "a_opt)|Parallel->"parallel"|Kernels->"kernels"|ParallelLoop->"parallel loop"|KernelsLoop->"kernels loop"|Data->"data"|EnterData->"enter data"|ExitData->"exit data"|Host_data->"host_data"|Loop->"loop"|Cache->"cache"|Update->"update"|Wait->"wait"|Routinen_opt->"routine"^(string_opt_to_string~prefix:" ("~suffix:")"n_opt)|Declare->"declare"|EndAtomic->"end atomic"|EndParallel->"end parallel"|EndKernels->"end kernels"|EndParallelLoop->"end parallel loop"|EndKernelsLoop->"end kernels loop"|EndData->"end data"|EndHost_data->"end host_data"letto_tag=function|ERROR->"ERROR",[]|Atomica_opt->"AccAtomic"^(opt_to_stringatomic_sub_to_stringa_opt),[]|Parallel->"AccParallel",[]|Kernels->"AccKernels",[]|ParallelLoop->"AccParallelLoop",[]|KernelsLoop->"AccKernelsLoop",[]|Data->"AccData",[]|EnterData->"AccEnterData",[]|ExitData->"AccExitData",[]|Host_data->"AccHost_data",[]|Loop->"AccLoop",[]|Cache->"AccCache",[]|Update->"AccUpdate",[]|Wait->"AccWait",[]|Routinen_opt->"AccRoutine",(string_opt_to_attrname_attr_namen_opt)|Declare->"AccDeclare",[]|EndAtomic->"AccEndAtomic",[]|EndParallel->"AccEndParallel",[]|EndParallelLoop->"AccEndParallelLoop",[]|EndKernelsLoop->"AccEndKernelsLoop",[]|EndKernels->"AccEndKernels",[]|EndData->"AccEndData",[]|EndHost_data->"AccEndHost_data",[]letget_name=function|Routinen_opt->beginmatchn_optwith|Somen->n|_->raiseNot_foundend|_->raiseNot_foundletget_name_opt=function|Routinen_opt->n_opt|_->Noneletis_specification_part=function|ERROR|Declare|Routine_->true|_->falseletis_execution_part=function|ERROR|Atomic_|Parallel|Kernels|ParallelLoop|KernelsLoop|Data|EnterData|ExitData|Host_data|Loop|Cache|Update|Wait|EndAtomic|EndParallel|EndKernels|EndParallelLoop|EndKernelsLoop|EndData|EndHost_data->true|_->falseletanonymize=function|Atomic_->AtomicNone|Routine_->RoutineNone|l->l