Skip to content

Commit

Permalink
add cache concurrency patch
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed May 23, 2024
1 parent 7a1910b commit f30bac8
Show file tree
Hide file tree
Showing 12 changed files with 67 additions and 42 deletions.
18 changes: 9 additions & 9 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ docker_image:
enable_cuda:
- 'True'
libhwloc:
- 2.10.0
- '1'
target_platform:
- linux-64
zip_keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ docker_image:
enable_cuda:
- 'True'
libhwloc:
- 2.10.0
- '1'
target_platform:
- linux-aarch64
zip_keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ docker_image:
enable_cuda:
- 'True'
libhwloc:
- 2.10.0
- '1'
target_platform:
- linux-ppc64le
zip_keys:
Expand Down
8 changes: 0 additions & 8 deletions .ci_support/migrations/libhwloc2100.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cxx_compiler_version:
enable_cuda:
- 'False'
libhwloc:
- 2.10.0
- '1'
macos_machine:
- x86_64-apple-darwin13.4.0
target_platform:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cxx_compiler_version:
enable_cuda:
- 'False'
libhwloc:
- 2.10.0
- '2'
macos_machine:
- arm64-apple-darwin20.0.0
target_platform:
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set version = "5.0" %}
{% set build_number = 4 %}
{% set build_number = 5 %}
{% set sha256 = "fd0bb6e50c2286278c11627b71177991519e1f7ab2576bd8d8742974db414549" %}

{% set llvm_version = "15.0.7" %}
Expand All @@ -15,6 +15,10 @@ source:
- patches/gh1392.patch
- patches/alignof.diff # [ppc64le]

# https://github.com/pocl/pocl/issues/1480, https://github.com/pocl/pocl/commit/ed97458ba737be9057f322594b7ff5701ad79b1f
# unnecessary after 5.0:
- patches/cache.diff

build:
number: {{ build_number }}
skip: true # [win]
Expand Down
29 changes: 29 additions & 0 deletions recipe/patches/cache.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/lib/CL/pocl_file_util.c b/lib/CL/pocl_file_util.c
index 281f6dbf84..377c653ca3 100644
--- a/lib/CL/pocl_file_util.c
+++ b/lib/CL/pocl_file_util.c
@@ -212,24 +212,6 @@ pocl_write_file (const char *path, const char *content, uint64_t count,
assert(content);
char path2[POCL_MAX_PATHNAME_LENGTH];
int err, fd = -1;
-
- if (pocl_exists(path))
- {
- if (dont_rewrite)
- {
- if (!append)
- return 0;
- }
- else
- {
- int res = pocl_remove(path);
- if (res)
- {
- POCL_MSG_ERR ("pocl_remove(%s) failed\n", path);
- return res;
- }
- }
- }

if (append)
{

0 comments on commit f30bac8

Please sign in to comment.