Skip to content

Commit

Permalink
update copyright dates, switch to SPDX license identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Jan 1, 2024
1 parent 4148699 commit 4107765
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 136 deletions.
20 changes: 2 additions & 18 deletions samples/python/00_enumopencl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
# Copyright (c) 2019-2021 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# SPDX-License-Identifier: MIT

add_opencl_python_sample(
NUMBER 00
Expand Down
2 changes: 1 addition & 1 deletion samples/python/00_enumopencl/enumopencl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Copyright (c) 2023 Ben Ashbaugh\n",
"# Copyright (c) 2024 Ben Ashbaugh\n",
"#\n",
"# SPDX-License-Identifier: MIT"
]
Expand Down
2 changes: 1 addition & 1 deletion samples/python/00_enumopencl/enumopencl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright (c) 2019-2023 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# SPDX-License-Identifier: MIT

Expand Down
20 changes: 2 additions & 18 deletions samples/python/01_copybuffer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
# Copyright (c) 2019-2021 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# SPDX-License-Identifier: MIT

add_opencl_python_sample(
NUMBER 01
Expand Down
2 changes: 1 addition & 1 deletion samples/python/01_copybuffer/copybuffer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Copyright (c) 2023 Ben Ashbaugh\n",
"# Copyright (c) 2024 Ben Ashbaugh\n",
"#\n",
"# SPDX-License-Identifier: MIT"
]
Expand Down
2 changes: 1 addition & 1 deletion samples/python/01_copybuffer/copybuffer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright (c) 2019-2023 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# SPDX-License-Identifier: MIT

Expand Down
20 changes: 2 additions & 18 deletions samples/python/02_copybufferkernel/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
# Copyright (c) 2019-2021 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# SPDX-License-Identifier: MIT

add_opencl_python_sample(
NUMBER 02
Expand Down
2 changes: 1 addition & 1 deletion samples/python/02_copybufferkernel/copybufferkernel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright (c) 2019-2023 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# SPDX-License-Identifier: MIT

Expand Down
20 changes: 2 additions & 18 deletions samples/python/03_mandelbrot/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
# Copyright (c) 2019-2021 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# SPDX-License-Identifier: MIT

add_opencl_python_sample(
NUMBER 03
Expand Down
2 changes: 1 addition & 1 deletion samples/python/03_mandelbrot/mandelbrot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Copyright (c) 2023 Ben Ashbaugh\n",
"# Copyright (c) 2024 Ben Ashbaugh\n",
"#\n",
"# SPDX-License-Identifier: MIT"
]
Expand Down
2 changes: 1 addition & 1 deletion samples/python/03_mandelbrot/mandelbrot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright (c) 2019-2023 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# SPDX-License-Identifier: MIT

Expand Down
20 changes: 2 additions & 18 deletions samples/python/04_julia/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
# Copyright (c) 2019-2021 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# SPDX-License-Identifier: MIT

add_opencl_python_sample(
NUMBER 04
Expand Down
6 changes: 3 additions & 3 deletions samples/python/04_julia/julia.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Copyright (c) 2023 Ben Ashbaugh\n",
"# Copyright (c) 2024 Ben Ashbaugh\n",
"#\n",
"# SPDX-License-Identifier: MIT"
]
Expand Down Expand Up @@ -226,9 +226,9 @@
" lws = None\n",
"\n",
" print('Executing the kernel {} times'.format(iterations))\n",
" print('Global Work Size = ({}, {})'.format(width, height))\n",
" print('Global Work Size = {}'.format([width, height]))\n",
" if lws:\n",
" print('Local Work Size = ({}, {})'.format(lws[0], lws[1]))\n",
" print('Local Work Size = {}'.format(lws))\n",
" else:\n",
" print('Local Work Size = NULL')"
]
Expand Down
20 changes: 2 additions & 18 deletions samples/python/04_julia/julia.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
#!/usr/bin/env python

# Copyright (c) 2019-2023 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# SPDX-License-Identifier: MIT

from PIL import Image

Expand Down
20 changes: 2 additions & 18 deletions samples/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
# Copyright (c) 2019-2021 Ben Ashbaugh
# Copyright (c) 2019-2024 Ben Ashbaugh
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# SPDX-License-Identifier: MIT

function(add_opencl_python_sample)
set(options )
Expand Down

0 comments on commit 4107765

Please sign in to comment.