Skip to main content
Log in

Detection of and-parallelism in logic programs

  • Regular Papers
  • Published:
Journal of Computer Science and Technology Aims and scope Submit manuscript

Abstract

In this paper, we present a detection technique of and-parallelism in logic programs. The detection consists of three phases: analysis of entry modes, derivation of exit modes and determination of execution graph expressions. Compared with other techniques[2, 4, 5], our approach, with the compile- time program- level data- dependence analysis of logic programs, can efficiently exploit and- parallelism in logic programs. Two precompilers, based on our technique and DeGroot’s approach[3] respectively, have been implemented in SES- PIM system[12]. Through compiling and running some typical benchmarks in SES- PIM, we conclude that our technique can, in most cases, exploit as much and- parallelism as the dynamic approach[13] does under “producer- consumer” scheme, and needs less dynamic overhead while exploiting more and-parallelism than DeGroot’s approach does.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. J. S. Conery, The AND/OR model for parallel interpretation of logic programs, Ph. D. Th., Dept. of Infor. and Computer Sci., Univ. of California, Irvine, 1983.

    Google Scholar 

  2. D. DeGroot, Restricted And—parallelism, Proc. of the Int ′1 Conf. on Fifth Generation Computer System, Tokyo, Nov. 1984, 471–478.

  3. D. DeGroot, A technique for compiling execution graph expressions for restricted And—parallelism in logic programs, Proc. of the 1987 Int ′1 Supercomputing Conf., Athens, Greece, June 1987.

  4. J.-H.Chang, A. M. Despain and D. DeGroot, And—parallelism of logic programs based on a static data dependency analysis, COMPCON 85, San Francisco, Feb., 1985, 218–225.

  5. Yu-Wen Tung and Dan I. Moldovan, Detection of And—parallelism in logic programming Proc. of the 1986 Int ′1 Conf. on Parallel Processing, IEEE, Pennsylvania, 1986, 984–991.

  6. K. L. Clark and S. Gregory, PARLOG: parallel programming in logic, Research report DOC 84/4, Imperial College, London, U. K.

  7. E. Y. Shapiro, A Subset of Concurrent Prolog and its Interpreter, ICOT. Technical Report: TR-003, Feb., 1983.

  8. C. S. Melish, The automatic generation of mode declarations for Prolog programs, DAI Research paper 163, Dept. of Artificial Intelligence, Univ. of Edinburgh, August 1981, U. K.

    Google Scholar 

  9. D. DeGroot, Restricted And—parallelism and side—effects in logic programming, in Supercomputers and AI Machines, Kai Hwang and Doug DeGroot Editors, McGraw— Hill, 1988.

  10. Sun Chengzheng and Ci Yungui, The OR—forest description for the execution of logic programs, Lecture Notes in Computer Science, Proc. of the 3rd Int ′1 Conf. on Logic Programming, London, July, 1986.

  11. Sun Chengzheng and Ci Yungui PSOF: a process model based on the OR—forest description, Proc. of the Int ′1 Conf. on Computer and Communication, Beijing, 1986.

  12. Sun Chengzheng and Ci Yungui, SES— PIM: a simulation and experiment system for PIM — PSOF, the 2nd National Conf. on Logic Programming, China, 1986.

  13. Sun Chengzheng and Ci Yungui, An automatic partition algorithm for And—parallel execution in the framework of OR—forest, Proc. of the 2nd Int ′1 Conf. on Computers and Applications, Beijing, 1987.

  14. Hwang Zhiyi and Hu Shouren, A compiling approach for exploiting And— parallelism in parallel logic programming systems, Proc. of Parallel Architecture and Language Europe, Netherlands, 1989.

  15. Hwang Zhiyi and Hu Shouren, Analysis of RAP, the 3rd National Conf. on Logic Programming, China, 1987.

Download references

Author information

Authors and Affiliations

Authors

Additional information

This research was partially supported by the Fok Ying Tung Education Foundation.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Huang, Z., Hu, S. Detection of and-parallelism in logic programs. J. of Comput. Sci. & Technol. 5, 379–387 (1990). https://doi.org/10.1007/BF02945290

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF02945290

Keywords

Navigation