Skip to content

Commit

Permalink
toml and README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
acbbullock committed Feb 2, 2023
1 parent bbf097b commit d7d5c37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022, Austin Bullock & Andrew Wasserbeck
Copyright (c) 2022-2023, Austin Bullock & Andrew Wasserbeck

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ We implement the stochastic optimization algorithm as a type-bound procedure of
type RestrictedBoltzmannMachine
private
character(len=1) :: alignment = 'N' !! For tracking spin alignment
integer, allocatable :: v_units, h_units !! Number of visble and hidden units
integer :: v_units = 0, h_units = 0 !! Number of visble and hidden units
real(rk), allocatable, dimension(:) :: a !! Visible layer biases
complex(rk), allocatable, dimension(:) :: b !! Hidden layer biases
complex(rk), allocatable, dimension(:,:) :: w !! Weights
Expand Down Expand Up @@ -202,7 +202,7 @@ On Windows, the project can be built and run using the command
fpm run --compiler ifort --flag "/O3 /arch:CORE-AVX2 /Qcoarray /Qcoarray-num-images:n /heap-arrays:0" --link-flag "mkl_lapack95_lp64.lib mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib"
```

for a CPU with the AVX2 instruction set extension for best performance, where `n` is the number of images to use. The `O3` flag enables the highest optimization level, the `arch` flag specifies which instruction sets to target, the `Qiopenmp` flag generates multi-threaded code based on OpenMP directives, the `Qcoarray` flag enables the coarray feature of Fortran 2008 with `Qcoarray-num-images:n` specifying the number of images to use, and the `heap-arrays:0` flag puts all automatic arrays on the heap, which may be necessary to avoid stack overflows for larger systems but can be omitted for smaller systems. The link flag specifies the MKL and OpenMP runtime libraries for static linking.
for a CPU with the AVX2 instruction set extension for best performance, where `n` is the number of images to use. The `O3` flag enables the highest optimization level, the `arch` flag specifies which instruction sets to target, the `Qcoarray` flag enables the coarray feature of Fortran 2008 with `Qcoarray-num-images:n` specifying the number of images to use, and the `heap-arrays:0` flag puts all automatic arrays on the heap, which may be necessary to avoid stack overflows for larger systems but can be omitted for smaller systems. The link flag specifies the MKL and OpenMP runtime libraries for static linking.

Similarly, the project may be built and run on Linux using the command

Expand Down
4 changes: 2 additions & 2 deletions fpm.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name = "nnqs"
version = "1.0.0"
version = "1.0.5"
license = "MIT"
author = "Austin C Bullock, Andrew Wasserbeck"
maintainer = "[email protected]"
copyright = "© 2022, Austin Bullock & Andrew Wasserbeck"
copyright = "© 2022-2023, Austin Bullock & Andrew Wasserbeck"

[build]
auto-executables = true
Expand Down

0 comments on commit d7d5c37

Please sign in to comment.