Skip to content

Commit

Permalink
add compatibility notes (#238)
Browse files Browse the repository at this point in the history
* update README with compatibility notes

* minor wordsmithing

* clarify when to use tagged or released OpenCL API headers
  • Loading branch information
bashbaug authored Sep 26, 2023
1 parent cea6342 commit 1ebe961
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Linux

on: [push, pull_request]
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'

jobs:
compatibility:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: MacOS

on: [push, pull_request]
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'

jobs:
compatibility:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Windows

on: [push, pull_request]
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'

jobs:
compatibility:
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,23 @@ may include the OpenCL API headers as follows:
#include <CL/opencl.h>
```

## Compatibility Notes

OpenCL values backward compatibility and in most cases an application using an
older version of the OpenCL API headers can seamlessly update to a newer version
of the OpenCL API headers. In rare cases, though, the OpenCL API headers may
break backward compatibility:

* Very rarely, there may be bugs or other issues in the OpenCL API headers that
cannot be fixed without breaking compatibility.
* The OpenCL API headers for provisional features or provisional extensions may
be changed in a way that breaks compatibility.

Applications or libraries that require stable OpenCL API headers are encouraged
to use tagged or released OpenCL API headers. We will do our best to document
any breaking changes in the description of each release. The OpenCL API headers
are tagged at least as often as each OpenCL specification release.

## Directory Structure

```
Expand Down

0 comments on commit 1ebe961

Please sign in to comment.