Skip to content

Commit

Permalink
Merge branch 'license'
Browse files Browse the repository at this point in the history
  • Loading branch information
tkphd committed Mar 4, 2019
2 parents eb366c5 + fb72531 commit a595a51
Show file tree
Hide file tree
Showing 59 changed files with 88 additions and 874 deletions.
36 changes: 25 additions & 11 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
# Terms of Use
This software was developed at the [National Institute of Standards and Technology](http://www.nist.gov)
by employees of the Federal Government in the course of their official duties.
Pursuant to [title 17 section 105](https://www.copyright.gov/title17/92chap1.html#105)
of the United States Code this software is not subject to copyright protection
and is in the public domain. NIST assumes no responsibility whatsoever for the
use of this software by other parties, and makes no guarantees, expressed or
implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.

This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any
modified versions bear some notice that they have been modified.
This software was developed by employees of the
[National Institute of Standards and Technology](http://www.nist.gov), an agency
of the Federal Government and is being made available as a public service.
Pursuant to
[Title 17 United States Code Section 105](https://www.copyright.gov/title17/92chap1.html#105),
works of NIST employees are not subject to copyright protection in the United
States. This software may be subject to foreign copyright. Permission in the
United States and in foreign countries, to the extent that NIST may hold
copyright, to use, copy, modify, create derivative works, and distribute this
software and its documentation without fee is hereby granted on a non-exclusive
basis, provided that this notice and disclaimer of warranty appears in all
copies.

THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER
EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY
THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM
INFRINGEMENT, AND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE
SOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT
SHALL NIST BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT,
INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR
IN ANY WAY CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY,
CONTRACT, TORT, OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR
PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT
OF THE RESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.
14 changes: 6 additions & 8 deletions analysis-diffusion/plot_runtimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
cpuBase = ("serial", "openmp", "tbb")
gpuBase = ("cuda", "openacc", "opencl")

# sizes = (256, 512, 768, 1024, 1280, 1536, 1792, 2048)
sizes = (256, 512, 768, 1024)

dirset = (["cpu-{0}-diffusion".format(c) for c in cpuBase],
["gpu-{0}-diffusion".format(g) for g in gpuBase])

dirs = [s for sublist in dirset for s in sublist]

colors = ['black'] + [plt.cm.cool(i) for i in np.linspace(0, 1, len(dirs)-1)]
Expand Down Expand Up @@ -108,17 +106,17 @@

plt.figure(3)
plt.legend(loc='best')
plt.savefig("runtime_{0}.png".format(nx), dpi=300, bbox_inches='tight')
plt.savefig("all-runtime-{0}.png".format(nx), dpi=300, bbox_inches='tight')
plt.close()

plt.figure(4)
plt.legend(loc='best')
plt.savefig("residual_{0}.png".format(nx), dpi=300, bbox_inches='tight')
plt.savefig("all-residual-{0}.png".format(nx), dpi=300, bbox_inches='tight')
plt.close()

plt.figure(5)
plt.legend(loc='best')
plt.savefig("diffusion_{0}.png".format(nx), dpi=300, bbox_inches='tight')
plt.savefig("all-diffusion-{0}.png".format(nx), dpi=300, bbox_inches='tight')
plt.close()

plt.figure(6)
Expand All @@ -127,13 +125,13 @@
plt.close()

plt.figure(0)
plt.savefig("runtimes.png", dpi=300, bbox_inches='tight')
plt.savefig("all-runtimes.png", dpi=300, bbox_inches='tight')
plt.close()

plt.figure(1)
plt.savefig("residuals.png", dpi=300, bbox_inches='tight')
plt.savefig("all-residuals.png", dpi=300, bbox_inches='tight')
plt.close()

plt.figure(2)
plt.savefig("diffusions.png", dpi=300, bbox_inches='tight')
plt.savefig("all-diffusions.png", dpi=300, bbox_inches='tight')
plt.close()
16 changes: 1 addition & 15 deletions common-diffusion/boundaries.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-diffusion/mesh.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-diffusion/mesh.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-diffusion/numerics.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-diffusion/numerics.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-diffusion/output.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-diffusion/output.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-diffusion/timer.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-diffusion/type.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-spinodal/boundaries.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-spinodal/mesh.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
16 changes: 1 addition & 15 deletions common-spinodal/mesh.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
/**********************************************************************************
HiPerC: High Performance Computing Strategies for Boundary Value Problems
written by Trevor Keller and available from https://github.com/usnistgov/hiperc
This software was developed at the National Institute of Standards and Technology
by employees of the Federal Government in the course of their official duties.
Pursuant to title 17 section 105 of the United States Code this software is not
subject to copyright protection and is in the public domain. NIST assumes no
responsibility whatsoever for the use of this software by other parties, and makes
no guarantees, expressed or implied, about its quality, reliability, or any other
characteristic. We would appreciate acknowledgement if the software is used.
This software can be redistributed and/or modified freely provided that any
derivative works bear some notice that they are derived from it, and any modified
versions bear some notice that they have been modified.
Questions/comments to Trevor Keller ([email protected])
Written by Trevor Keller and available from https://github.com/usnistgov/hiperc
**********************************************************************************/

/**
Expand Down
Loading

0 comments on commit a595a51

Please sign in to comment.