Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
Profanity
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Profanity
Commits
804781a0
Commit
804781a0
authored
Aug 22, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first
parent
5069d8c9
Pipeline
#29345
failed with stages
in 5 minutes and 8 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
2 deletions
+80
-2
.dockerignore
.dockerignore
+11
-0
.gitlab-ci.yml
.gitlab-ci.yml
+42
-0
Dockerfile
Dockerfile
+26
-0
Makefile
Makefile
+1
-2
No files found.
.dockerignore
0 → 100644
View file @
804781a0
.git*
Dockerfile
.dockerignore
dist
*.o
*.so
.DS_store
cache-opencl.*
bin
profanity.x64
README_dev.md
.gitlab-ci.yml
0 → 100644
View file @
804781a0
stages
:
-
build
-
deploy
variables
:
GIT_DEPTH
:
"
1"
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
.build-image
:
stage
:
build
script
:
-
docker build --pull -t $TARGET_IMAGE .
-
docker push $TARGET_IMAGE
build-x86
:
extends
:
.build-image
tags
:
-
docker
variables
:
TARGET_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-x86
.deploy
:
stage
:
deploy
tags
:
-
docker
script
:
-
docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-x86
-
docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-x86 $TARGET_IMAGE
-
docker push $TARGET_IMAGE
deploy_latest
:
extends
:
.deploy
variables
:
TARGET_IMAGE
:
$CI_REGISTRY_IMAGE:latest
only
:
-
main
deploy_branch
:
extends
:
.deploy
variables
:
TARGET_IMAGE
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
Dockerfile
0 → 100644
View file @
804781a0
FROM
nvidia/cuda:12.0.0-runtime-ubuntu22.04 as base
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
build-essential
\
libcurl4-openssl-dev
\
ocl-icd-libopencl1
\
opencl-headers
\
clinfo pkg-config
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
mkdir
-p
/etc/OpenCL/vendors
&&
\
echo
"libnvidia-opencl.so.1"
>
/etc/OpenCL/vendors/nvidia.icd
&&
\
echo
"/usr/local/nvidia/lib"
>>
/etc/ld.so.conf.d/nvidia.conf
&&
\
echo
"/usr/local/nvidia/lib64"
>>
/etc/ld.so.conf.d/nvidia.conf
# nvidia-container-runtime
ENV
NVIDIA_VISIBLE_DEVICES all
ENV
NVIDIA_DRIVER_CAPABILITIES compute,utility
FROM
base as builder
WORKDIR
/src
COPY
. ./
RUN
make
-j
$(
nproc
)
FROM
base
COPY
--from=builder /src/profanity.x64 /usr/bin/profanity
WORKDIR
/app
Makefile
View file @
804781a0
...
...
@@ -9,7 +9,7 @@ ifeq ($(UNAME_S),Darwin)
LDFLAGS
=
-framework
OpenCL
-lcurl
CFLAGS
=
-c
-std
=
c++11
-Wall
-mmmx
-O2
else
LDFLAGS
=
-s
-
lOpenCL
-mcmodel
=
large
LDFLAGS
=
-s
-
L
/usr/lib/x86_64-linux-gnu
-lOpenCL
-lcurl
-mcmodel
=
large
CFLAGS
=
-c
-std
=
c++11
-Wall
-mmmx
-O2
-mcmodel
=
large
endif
...
...
@@ -23,4 +23,3 @@ $(EXECUTABLE): $(OBJECTS)
clean
:
rm
-rf
*
.o
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment