forked from gpu/JOCL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
32 lines (22 loc) · 778 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
vb.cpus = 2
end
config.vm.provision "shell", inline: <<-SHELL
curl http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm >epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum install -y cmake3 gcc-c++ git maven mesa-libGL-devel ocl-icd-devel
cd /tmp
git clone https://github.com/gpu/JOCL
git clone https://github.com/gpu/JOCLCommon
export JAVA_HOME=/etc/alternatives/java_sdk
cmake3 JOCL
make
cd JOCL
mvn clean package -DskipTests
cp target/*.jar /vagrant
SHELL
end